Merge branch 'ps/ls-remote-out-of-repo-fix' into maint-2.46
A recent update broke "git ls-remote" used outside a repository, which has been corrected. * ps/ls-remote-out-of-repo-fix: builtin/ls-remote: fall back to SHA1 outside of a repo
This commit is contained in:
@ -402,4 +402,17 @@ test_expect_success 'v0 clients can handle multiple symrefs' '
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_expect_success 'helper with refspec capability fails gracefully' '
|
||||
mkdir test-bin &&
|
||||
write_script test-bin/git-remote-foo <<-EOF &&
|
||||
echo import
|
||||
echo refspec ${SQ}*:*${SQ}
|
||||
EOF
|
||||
(
|
||||
PATH="$PWD/test-bin:$PATH" &&
|
||||
export PATH &&
|
||||
test_must_fail nongit git ls-remote foo::bar
|
||||
)
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Reference in New Issue
Block a user