gitweb: Allow PNG, GIF, JPEG images to be displayed in "blob" view
[gitweb.git] / receive-pack.c
index 1a141dc1e55aef221312b4cde590fac865546c43..a20bc924d6b261138002f2e95b127e0ffd226411 100644 (file)
@@ -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;