summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-27 18:44:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-27 18:44:14 (GMT)
commitf583ace15762e2f9f68ccfcf0ec0e0527b2a899d (patch)
tree20e6d8713acc48a294d445260fffd8603736bca9 /t
parent63763273de8cc7c928d4e8bae4795f84c9deabd4 (diff)
parent4c224081118ac27ea62cb249bd95e66cba652483 (diff)
downloadgit-f583ace15762e2f9f68ccfcf0ec0e0527b2a899d.zip
git-f583ace15762e2f9f68ccfcf0ec0e0527b2a899d.tar.gz
git-f583ace15762e2f9f68ccfcf0ec0e0527b2a899d.tar.bz2
Merge branch 'jk/allow-fetch-onelevel-refname'
"git clone" would fail to clone from a repository that has a ref directly under "refs/", e.g. "refs/stash", because different validation paths do different things on such a refname. Loosen the client side's validation to allow such a ref. * jk/allow-fetch-onelevel-refname: fetch-pack: do not filter out one-level refs
Diffstat (limited to 't')
-rwxr-xr-xt/t5510-fetch.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index 12674ac..ab28594 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -640,4 +640,15 @@ test_expect_success 'branchname D/F conflict resolved by --prune' '
test_cmp expect actual
'
+test_expect_success 'fetching a one-level ref works' '
+ test_commit extra &&
+ git reset --hard HEAD^ &&
+ git update-ref refs/foo extra &&
+ git init one-level &&
+ (
+ cd one-level &&
+ git fetch .. HEAD refs/foo
+ )
+'
+
test_done