Skip to content

Commit d50fc42

Browse files
committed
fixup! fixup! gvfs-helper: create tool to fetch objects using the GVFS Protocol
1 parent 13b8048 commit d50fc42

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

‎gvfs-helper-client.c‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -191,35 +191,6 @@ static void gh_client__update_loose_cache(const char *line)
191191
odb_loose_cache_add_new_oid(gh_client__chosen_odb, &oid);
192192
}
193193

194-
/*
195-
* Update the packed-git list to include the newly created packfile.
196-
*/
197-
static void gh_client__update_packed_git(const char *line)
198-
{
199-
struct strbuf path = STRBUF_INIT;
200-
const char *v1_filename;
201-
struct packed_git *p;
202-
int is_local;
203-
204-
if (!skip_prefix(line, "packfile ", &v1_filename))
205-
BUG("update_packed_git: invalid line '%s'", line);
206-
207-
/*
208-
* ODB[0] is the local .git/objects. All others are alternates.
209-
*/
210-
is_local = (gh_client__chosen_odb == the_repository->objects->sources);
211-
212-
strbuf_addf(&path, "%s/pack/%s",
213-
gh_client__chosen_odb->path, v1_filename);
214-
strbuf_strip_suffix(&path, ".pack");
215-
strbuf_addstr(&path, ".idx");
216-
217-
p = add_packed_git(the_repository, path.buf, path.len, is_local);
218-
if (p)
219-
packfile_store_add_pack(the_repository->objects->packfiles, p);
220-
strbuf_release(&path);
221-
}
222-
223194
/*
224195
* CAP_OBJECTS verbs return the same format response:
225196
*

0 commit comments

Comments
 (0)