]> arthur.barton.de Git - bup.git/commit
git.py: error when repo's parent dir absent
authorGabriel Filion <lelutin@gmail.com>
Mon, 17 Jan 2011 02:19:24 +0000 (21:19 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 18 Jan 2011 20:33:21 +0000 (12:33 -0800)
commit05520573d14d587d92e2d857547608effafae6c3
tree0e788d84b72ba62e5970fec8ec48d2cedae7ae75
parentd61dd730f90a5ead7291524a6a00f9f741c0c23e
git.py: error when repo's parent dir absent

Currently, when you try to initialize a bup repository inside an
unexistant directory (e.g. BUP_DIR=some_dir/bup_repo, and some_dir does
not exist), bup has to call "git init" to then obtain an error code
which is not very significant to users.

Add a check for the existence of the repository's parent directory and
throw an exception with a more meaningful error message when that
happens.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
lib/bup/git.py