Merge branch 'sg/wt-status-header-inclusion'
[gitweb.git] / builtin / receive-pack.c
index 4ced2eba3c8c395a82af424433741b67e19e1714..e6b93d026478dce208ab4c267d9b6e67fa856c8d 100644 (file)
@@ -933,7 +933,7 @@ static const char *update(struct command *cmd, struct shallow_info *si)
                        return "deletion prohibited";
                }
 
-               if (!strcmp(namespaced_name, head_name)) {
+               if (head_name && !strcmp(namespaced_name, head_name)) {
                        switch (deny_delete_current) {
                        case DENY_IGNORE:
                                break;