mirror of
https://github.com/git/git.git
synced 2026-08-05 15:41:00 +00: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:
@@ -1563,6 +1563,13 @@ int cmd_main(int argc, const char **argv)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/*
|
||||
* yuck, see 9e89dcb66a (builtin/ls-remote: fall back to SHA1 outside
|
||||
* of a repo, 2024-08-02)
|
||||
*/
|
||||
if (nongit)
|
||||
repo_set_hash_algo(the_repository, GIT_HASH_DEFAULT);
|
||||
|
||||
options.verbosity = 1;
|
||||
options.progress = !!isatty(2);
|
||||
options.thin = 1;
|
||||
|
||||
Reference in New Issue
Block a user