/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
assume parse_commit checks for NULL commit
[git/git.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index
26c1d54
..
8535e5c
100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-79,7
+79,7
@@
struct commit *lookup_commit_reference_by_name(const char *name)
if (get_sha1_committish(name, sha1))
return NULL;
commit = lookup_commit_reference(sha1);
- if (
!commit ||
parse_commit(commit))
+ if (parse_commit(commit))
return NULL;
return commit;
}