From: Avery Pennarun Date: Sun, 29 May 2011 23:34:30 +0000 (-0400) Subject: Clarify the message when the BUP_DIR doesn't exist. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4658e03f2d25a9f572051e0da6b640f3b75890b1;p=packages%2Fb%2Fbup.git Clarify the message when the BUP_DIR doesn't exist. Now it reminds you to run 'bup init'. Problem reported by Thomas Klausner. Signed-off-by: Avery Pennarun --- diff --git a/lib/bup/git.py b/lib/bup/git.py index 58cd4a6..421c306 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -843,7 +843,8 @@ def check_repo_or_die(path=None): except OSError, e: if e.errno == errno.ENOENT: if repodir != home_repodir: - log('error: %r is not a bup/git repository\n' % repo()) + log('error: %r is not a bup repository; run "bup init"\n' + % repo()) sys.exit(15) else: init_repo()