summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-21 00:13:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-21 00:13:13 (GMT)
commit23f12912d1b6c608a7418d242e257b7239861f61 (patch)
tree1fc8a793688652e08f7b0a4b11b9a5bc2f3f9733 /t
parentf27e55864317611385be4d33b3c53ca787379df9 (diff)
parent0ca15e7217285edaa6c93b53165e1250d25f030b (diff)
downloadgit-23f12912d1b6c608a7418d242e257b7239861f61.zip
git-23f12912d1b6c608a7418d242e257b7239861f61.tar.gz
git-23f12912d1b6c608a7418d242e257b7239861f61.tar.bz2
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-xt/t5701-clone-local.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5701-clone-local.sh b/t/t5701-clone-local.sh
index 822ac8c..59a165a 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