diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2006-09-26 09:23:37 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-26 10:54:40 +0400 |
commit | 9c7b0b3fc46e552bde1a65cd1950c3634854332b (patch) | |
tree | 7738ab6f8365a842c6862b6726a6fc9e70e08e68 /t | |
parent | 4dafd7d2444051fe0e1eb17e9ded503ad7d9dd25 (diff) |
Remove empty ref directories that prevent creating a ref.
This patch also adds test cases from Linus and Junio.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-x | t/t3200-branch.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index 5b04efc89d..6907cbcd29 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -61,4 +61,16 @@ test_expect_success \ test -f .git/logs/refs/heads/g/h/i && diff expect .git/logs/refs/heads/g/h/i' +test_expect_success \ + 'git branch j/k should work after branch j has been deleted' \ + 'git-branch j && + git-branch -d j && + git-branch j/k' + +test_expect_success \ + 'git branch l should work after branch l/m has been deleted' \ + 'git-branch l/m && + git-branch -d l/m && + git-branch l' + test_done |