mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-20 17:05:12 -05:00
Merge branch 'kj/refspec-parsing-outside-repository'
"git ls-remote '+refs/tags/*:refs/tags/*' https://..." run outside a repository would dereference a NULL while trying to see if the given refspec is a single-object refspec, which has been corrected. * kj/refspec-parsing-outside-repository: refspec: fix typo in comment remote-curl: fall back to default hash outside repo
This commit is contained in:
@@ -782,4 +782,11 @@ test_expect_success 'tag following always works over v0 http' '
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'ls-remote outside repo does not segfault with fetch refspec' '
|
||||
nongit git \
|
||||
-c remote.origin.url="$HTTPD_URL/smart/repo.git" \
|
||||
-c remote.origin.fetch=anything \
|
||||
ls-remote origin
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user