gitweb: Don't use Content-Encoding: header in git_snapshot
[gitweb.git] / receive-pack.c
index 1a141dc1e55aef221312b4cde590fac865546c43..e76d9aea31886ec9b0d287f02a12af9793fb44db 100644 (file)
@@ -11,7 +11,7 @@
 static const char receive_pack_usage[] = "git-receive-pack <git-dir>";
 
 static int deny_non_fast_forwards = 0;
-static int unpack_limit = 5000;
+static int unpack_limit = 100;
 static int report_status;
 
 static char capabilities[] = " report-status delete-refs ";
@@ -120,7 +120,8 @@ static int update(struct command *cmd)
                             "but I can't find it!", new_hex);
        }
        if (deny_non_fast_forwards && !is_null_sha1(new_sha1) &&
-           !is_null_sha1(old_sha1)) {
+           !is_null_sha1(old_sha1) &&
+           !strncmp(name, "refs/heads/", 11)) {
                struct commit *old_commit, *new_commit;
                struct commit_list *bases, *ent;