remote-hg: add tests for special filenames
[gitweb.git] / builtin / branch.c
index f157f92f485230c2412454def728d374550497be..636a16ea4e3af71aef80ba42639f0933c286f485 100644 (file)
@@ -502,7 +502,7 @@ static void add_verbose_info(struct strbuf *out, struct ref_item *item,
        const char *sub = _(" **** invalid ref ****");
        struct commit *commit = item->commit;
 
-       if (commit && !parse_commit(commit)) {
+       if (!parse_commit(commit)) {
                pp_commit_easy(CMIT_FMT_ONELINE, commit, &subject);
                sub = subject.buf;
        }