manpages: italicize command names in synopses
[gitweb.git] / builtin-fetch-pack.c
index de1e8d1365769c7c841749901f705c0b6a78eab3..2175c6d0d694d12838fc8a9ce7a3cca78a48ed59 100644 (file)
@@ -309,7 +309,8 @@ static int find_common(int fd[2], unsigned char *result_sha1,
                }
                flushes--;
        }
-       return retval;
+       /* it is no error to fetch into a completely empty repo */
+       return count ? retval : 0;
 }
 
 static struct commit_list *complete;
@@ -820,5 +821,6 @@ struct ref *fetch_pack(struct fetch_pack_args *my_args,
                }
        }
 
+       reprepare_packed_git();
        return ref_cpy;
 }