projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix missing '\n' at end of git-cat-file -t output.
[git.git]
/
cat-file.c
diff --git
a/cat-file.c
b/cat-file.c
index
6bbb0ca
..
6ff9d55
100644
(file)
--- a/
cat-file.c
+++ b/
cat-file.c
@@
-21,6
+21,7
@@
int main(int argc, char **argv)
buf = type;
size = strlen(type);
type[size] = '\n';
+ size++;
}
} else {
buf = read_object_with_reference(sha1, argv[1], &size, NULL);