Commit Diff


commit - 6fb3a4970337c135644ac0ef619a7e96616e4230
commit + 4b20c923ed76cf3ecc2bdb6f48005e19399474ce
blob - 5b45c17bbc93fb1b084dbfae4dec309dda3a9dea
blob + df6957508517fc33ebb458e597795c59ffa49898
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
@@ -58,12 +58,6 @@ static char *fetchbranch;
 static char *upstream = "origin";
 static struct got_object_id zhash = {.sha1={0}};
 
-static char*
-strip(char *ref)
-{
-	return ref;
-}
-
 int
 readn(int fd, void *buf, size_t n)
 {
@@ -150,7 +144,6 @@ got_resolve_remote_ref(struct got_object_id *id, char 
 	char buf[128], *s;
 	int r, f;
 
-	ref = strip(ref);
 	if(!got_parse_sha1_digest(id->sha1, ref))
 		return 0;
 
@@ -173,7 +166,7 @@ got_resolve_remote_ref(struct got_object_id *id, char 
 	}
 
 	r = -1;
-	s = strip(buf);
+	s = buf;
 	if((f = open(s, O_RDONLY)) == -1)
 		goto err;
 	if(readn(f, buf, sizeof(buf)) < 40)