diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-12-20 10:19:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-12-20 10:19:58 -0800 |
| commit | 7a75e131d68f8aa4889003cb048bb092422f9051 (patch) | |
| tree | c0a8f140a5d3a4eed22795743e66e1b0d86abde0 /remote-curl.c | |
| parent | 055bb6e9969085777b7fab83e3fee0017654f134 (diff) | |
| parent | 18c9cb7524c13ca88ee334a707f281c2e80d5fdf (diff) | |
| download | git-7a75e131d68f8aa4889003cb048bb092422f9051.tar.gz | |
Merge branch 'ps/clone-into-reftable-repository' into ps/refstorage-extension
* ps/clone-into-reftable-repository:
builtin/clone: create the refdb with the correct object format
builtin/clone: skip reading HEAD when retrieving remote
builtin/clone: set up sparse checkout later
builtin/clone: fix bundle URIs with mismatching object formats
remote-curl: rediscover repository when fetching refs
setup: allow skipping creation of the refdb
setup: extract function to create the refdb
Diffstat (limited to 'remote-curl.c')
| -rw-r--r-- | remote-curl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/remote-curl.c b/remote-curl.c index ef05752ca5..fc29757b65 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -1564,8 +1564,11 @@ int cmd_main(int argc, const char **argv) if (buf.len == 0) break; if (starts_with(buf.buf, "fetch ")) { - if (nongit) - die(_("remote-curl: fetch attempted without a local repo")); + if (nongit) { + setup_git_directory_gently(&nongit); + if (nongit) + die(_("remote-curl: fetch attempted without a local repo")); + } parse_fetch(&buf); } else if (!strcmp(buf.buf, "list") || starts_with(buf.buf, "list ")) { |
