Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/resolve-ref-optional-result'
[gitweb.git]
/
builtin
/
get-tar-commit-id.c
diff --git
a/builtin/get-tar-commit-id.c
b/builtin/get-tar-commit-id.c
index e21c5416cd478eab3b0dddcba5ca9eeefad83d34..6d9a79f9b39834d953685b2641354915df3cfcbe 100644
(file)
--- a/
builtin/get-tar-commit-id.c
+++ b/
builtin/get-tar-commit-id.c
@@
-33,8
+33,7
@@
int cmd_get_tar_commit_id(int argc, const char **argv, const char *prefix)
if (!skip_prefix(content, "52 comment=", &comment))
return 1;
- n = write_in_full(1, comment, 41);
- if (n < 41)
+ if (write_in_full(1, comment, 41) < 0)
die_errno("git get-tar-commit-id: write error");
return 0;