Skip to content

Commit b7e5705

Browse files
committed
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 73dab9e + 4be91a5 commit b7e5705

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
@@ -1047,6 +1047,9 @@ static int fetch_git(struct discovery *heads,
10471047
struct argv_array args = ARGV_ARRAY_INIT;
10481048
struct strbuf rpc_result = STRBUF_INIT;
10491049

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

0 commit comments

Comments
 (0)