Skip to content

Commit a4c4efd

Browse files
peffgitster
authored andcommitted
t5600: fix outdated comment about unborn HEAD
Back when this test was written, git-clone could not handle a repository without any commits. These days it works fine, and this comment is out of date. At first glance it seems like we could just drop this code entirely now, but it's necessary for the final test, which was added later. That test corrupts the repository by temporarily removing its objects, which means we need to have some objects to move. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3013dff commit a4c4efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5600-clone-fail-cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test_expect_success \
2222
# Need a repo to clone
2323
test_create_repo foo
2424

25-
# clone doesn't like it if there is no HEAD. Is that a bug?
25+
# create some objects so that we can corrupt the repo later
2626
(cd foo && touch file && git add file && git commit -m 'add file' >/dev/null 2>&1)
2727

2828
# source repository given to git clone should be relative to the

0 commit comments

Comments
 (0)