Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
push: test to verify that push errors are colored
[gitweb.git]
/
builtin
/
verify-commit.c
diff --git
a/builtin/verify-commit.c
b/builtin/verify-commit.c
index 05315ea7c966d3ed5b91e4cbd77eaa9943af253d..dcdaada111071c84b56022d9050ae06ffafbc25f 100644
(file)
--- a/
builtin/verify-commit.c
+++ b/
builtin/verify-commit.c
@@
-44,7
+44,7
@@
static int verify_commit(const char *name, unsigned flags)
if (get_oid(name, &oid))
return error("commit '%s' not found.", name);
- buf = read_
sha1_file(oid.hash
, &type, &size);
+ buf = read_
object_file(&oid
, &type, &size);
if (!buf)
return error("%s: unable to read file.", name);
if (type != OBJ_COMMIT)