]> arthur.barton.de Git - bup.git/commit
git.py: don't automatically initialize ~/.bup if it doesn't exist.
authorZoran Zaric <zz@zoranzaric.de>
Mon, 12 Aug 2013 14:20:12 +0000 (16:20 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 17 Aug 2013 20:37:34 +0000 (15:37 -0500)
commit621fbd9f86da68e7bc6974fe59cf9e32c29cdd3c
treed38b1d65f2b8a2fa491372db566cb35debcf4a77
parentf9597bf7865ff8cb04c96bb734d6628ff1c1d9f5
git.py: don't automatically initialize ~/.bup if it doesn't exist.

bup had a convenience feature where commands would automagically
initialize a repo in ~/.bup if it didn't exist and no other BUP_DIR
was given.

This had the odd effect that when one forgot to specify BUP_DIR, a bup
repo would be initialized in ~/.bup even though only a browsing
command was used.

This patch drops that behaviour.  Now all repositories must be
explicitly intiialized via "bup init".

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
[rlb@defaultvalue.org: edit commit message; fix test ("set +e" during
 init run).]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Makefile
lib/bup/git.py
t/test-command-without-init-fails.sh [new file with mode: 0755]