remote-hg: add tests for special filenames
[gitweb.git] / sha1_name.c
index e9c299943b817b5b3b5b700ac3979211d5688e2e..2f37488b96c0a8485e90d87befa997d75ba4b7b1 100644 (file)
@@ -581,8 +581,6 @@ static int get_parent(const char *name, int len,
        if (ret)
                return ret;
        commit = lookup_commit_reference(sha1);
-       if (!commit)
-               return -1;
        if (parse_commit(commit))
                return -1;
        if (!idx) {