Merge branch 'jk/doc-the-this'
[gitweb.git] / builtin / receive-pack.c
index 136c44def778fa64a4a79074413d08aeedcb7991..14b6e09b42f1d423307c98275f5b203078b82445 100644 (file)
@@ -1138,7 +1138,7 @@ static const char *update(struct command *cmd, struct shallow_info *si)
                }
                if (ref_transaction_delete(transaction,
                                           namespaced_name,
-                                          old_oid->hash,
+                                          old_oid ? old_oid->hash : NULL,
                                           0, "push", &err)) {
                        rp_error("%s", err.buf);
                        strbuf_release(&err);