diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-04-01 10:28:19 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-01 10:28:19 -0700 |
| commit | 949f59e96311dc85bc4b00a70f74ec0dfa2e37e0 (patch) | |
| tree | 5e45be22cb6d013295079d046336b457b7c6f31f /t | |
| parent | 93841d029e2c33b2e1ff9c89a0f7a9c83e83f895 (diff) | |
| parent | 4e5dc601ddc5f0d8ab035210554d9e15aa376032 (diff) | |
| download | git-949f59e96311dc85bc4b00a70f74ec0dfa2e37e0.tar.xz | |
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
Diffstat (limited to 't')
| -rwxr-xr-x | t/t5551-http-fetch-smart.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t5551-http-fetch-smart.sh b/t/t5551-http-fetch-smart.sh index 73cf531580..a26b6c2844 100755 --- a/t/t5551-http-fetch-smart.sh +++ b/t/t5551-http-fetch-smart.sh @@ -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 |
