Skip to content

Commit 87453bb

Browse files
Merge pull request #240: remote-https: do not call fetch-pack if using gvfs helper
The `gvfs-helper` is supposed to avoid calling `git fetch-pack` by downloading objects through the GVFS protocol instead. For some reason, some `git fetch` calls still end up calling `git fetch-pack` which gets a complaint from the remote because it does not support that kind of fetch. Put a hard stop in the `fetch_git()` method to prevent this process run.
2 parents 14b30a3 + 0aac91c commit 87453bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

remote-curl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,9 @@ static int fetch_git(struct discovery *heads,
10461046
struct argv_array args = ARGV_ARRAY_INIT;
10471047
struct strbuf rpc_result = STRBUF_INIT;
10481048

1049+
if (core_use_gvfs_helper)
1050+
return 0;
1051+
10491052
argv_array_pushl(&args, "fetch-pack", "--stateless-rpc",
10501053
"--stdin", "--lock-pack", NULL);
10511054
if (options.followtags)

0 commit comments

Comments
 (0)