diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-20 16:13:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-20 16:13:13 -0800 |
commit | 23f12912d1b6c608a7418d242e257b7239861f61 (patch) | |
tree | 1fc8a793688652e08f7b0a4b11b9a5bc2f3f9733 /t | |
parent | f27e55864317611385be4d33b3c53ca787379df9 (diff) | |
parent | 0ca15e7217285edaa6c93b53165e1250d25f030b (diff) | |
download | git-23f12912d1b6c608a7418d242e257b7239861f61.tar.gz |
Merge branch 'maint'
* maint:
Clarified the meaning of git-add -u in the documentation
git-clone.sh: properly configure remote even if remote's head is dangling
Documentation/git-stash: document options for git stash list
send-email: squelch warning due to comparing undefined $_ to ""
Diffstat (limited to 't')
-rwxr-xr-x | t/t5701-clone-local.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh index 822ac8c28e..59a165a6d4 100755 --- a/t/t5701-clone-local.sh +++ b/t/t5701-clone-local.sh @@ -63,4 +63,12 @@ test_expect_success 'Even without -l, local will make a hardlink' ' test 0 = $copied ' +test_expect_success 'local clone of repo with nonexistent ref in HEAD' ' + cd "$D" && + echo "ref: refs/heads/nonexistent" > a.git/HEAD && + git clone a d && + cd d && + git fetch && + test ! -e .git/refs/remotes/origin/HEAD' + test_done |