summaryrefslogtreecommitdiff
path: root/t/t5600-clone-fail-cleanup.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-01-02 21:08:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-03 21:33:02 (GMT)
commita4c4efd25159a8b308f9e204bc87e37b963bc2ae (patch)
treeba581cfb4022c927c2fc33b48be5ef795a568ef1 /t/t5600-clone-fail-cleanup.sh
parent3013dff8662eae06457fe6e5348dfe2270810ab2 (diff)
downloadgit-a4c4efd25159a8b308f9e204bc87e37b963bc2ae.zip
git-a4c4efd25159a8b308f9e204bc87e37b963bc2ae.tar.gz
git-a4c4efd25159a8b308f9e204bc87e37b963bc2ae.tar.bz2
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5600-clone-fail-cleanup.sh')
-rwxr-xr-xt/t5600-clone-fail-cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5600-clone-fail-cleanup.sh b/t/t5600-clone-fail-cleanup.sh
index 4435693..f23f92e 100755
--- a/t/t5600-clone-fail-cleanup.sh
+++ b/t/t5600-clone-fail-cleanup.sh
@@ -22,7 +22,7 @@ test_expect_success \
# Need a repo to clone
test_create_repo foo
-# clone doesn't like it if there is no HEAD. Is that a bug?
+# create some objects so that we can corrupt the repo later
(cd foo && touch file && git add file && git commit -m 'add file' >/dev/null 2>&1)
# source repository given to git clone should be relative to the