projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 2.14.3
[platform/upstream/git.git]
/
builtin
/
get-tar-commit-id.c
diff --git
a/builtin/get-tar-commit-id.c
b/builtin/get-tar-commit-id.c
index
e21c541
..
6d9a79f
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;