upload-pack: do not check NULL return of lookup_unknown_object
[gitweb.git] / upload-pack.c
index af2a13acc6d54c07e301c87de678bf2ca1863d11..4bc2dc3607ee6b86c773f8bedd803cc5134412c7 100644 (file)
@@ -688,8 +688,6 @@ static int mark_our_ref(const char *refname, const unsigned char *sha1)
                o->flags |= HIDDEN_REF;
                return 1;
        }
-       if (!o)
-               die("git upload-pack: cannot find object %s:", sha1_to_hex(sha1));
        o->flags |= OUR_REF;
        return 0;
 }