Commit Diff


commit - 07e52fce8675e8151ec7c58917fb3a6017279634
commit + ceee4c0f4a8b5ade21103c1c40c3de86b328156f
blob - 4ac41cc635c41eac4518ddbb2807dc5cf6245c42
blob + 741cccfe85b2fe967ee397f3df73d260df9a4c47
--- got/got.c
+++ got/got.c
@@ -1036,7 +1036,7 @@ cmd_clone(int argc, char *argv[])
 		goto done;
 
 	err = got_fetch_pack(&pack_hash, &refs, &symrefs, fetchfd,
-	    proto, host, port, server_path, repo_name, branch_filter, repo);
+	    repo);
 	if (err)
 		goto done;
 
blob - f3d2b15fae86301b5711f90e5f4384e9287f8039
blob + f33ee90db862279d91ceb7d55daac8ab8ff3aab7
--- include/got_fetch.h
+++ include/got_fetch.h
@@ -26,5 +26,4 @@ const struct got_error *got_fetch_connect(int *, const
 
 const struct got_error *got_fetch_pack(struct got_object_id **,
 	struct got_pathlist_head *, struct got_pathlist_head *, int,
-	const char *, const char *, const char *, const char *,
-	const char *, const char *, struct got_repository *);
+	struct got_repository *);
blob - c35b104e7b18600d7c0c53be57d233d3eb85438f
blob + 910dea7f0ad927dbaa23003995c60934b1a6014a
--- lib/fetch.c
+++ lib/fetch.c
@@ -299,10 +299,7 @@ done:
 
 const struct got_error*
 got_fetch_pack(struct got_object_id **pack_hash, struct got_pathlist_head *refs,
-    struct got_pathlist_head *symrefs, int fetchfd, const char *proto,
-    const char *host, const char *port, const char *server_path,
-    const char *repo_name, const char *branch_filter,
-    struct got_repository *repo)
+    struct got_pathlist_head *symrefs, int fetchfd, struct got_repository *repo)
 {
 	int imsg_fetchfds[2], imsg_idxfds[2];
 	int packfd = -1, npackfd = -1, idxfd = -1, nidxfd = -1, nfetchfd = -1;