diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-01-27 10:44:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-27 10:44:14 -0800 |
commit | f583ace15762e2f9f68ccfcf0ec0e0527b2a899d (patch) | |
tree | 20e6d8713acc48a294d445260fffd8603736bca9 /fetch-pack.c | |
parent | 63763273de8cc7c928d4e8bae4795f84c9deabd4 (diff) | |
parent | 4c224081118ac27ea62cb249bd95e66cba652483 (diff) | |
download | git-f583ace15762e2f9f68ccfcf0ec0e0527b2a899d.tar.gz |
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 'fetch-pack.c')
-rw-r--r-- | fetch-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-pack.c b/fetch-pack.c index d52de74c4b..90fdd49821 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -506,7 +506,7 @@ static void filter_refs(struct fetch_pack_args *args, next = ref->next; if (!memcmp(ref->name, "refs/", 5) && - check_refname_format(ref->name + 5, 0)) + check_refname_format(ref->name, 0)) ; /* trash */ else { while (i < nr_sought) { |