diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 19:40:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 19:40:39 -0700 |
| commit | fa9e9c7bc4d6437537a78517f7f6909340e25ad9 (patch) | |
| tree | 38130edc56f1cf36fbd7e137c06c679fee1beed1 | |
| parent | Make "cat-file" use "read_object_with_reference()" (diff) | |
| download | git-fa9e9c7bc4d6437537a78517f7f6909340e25ad9.tar.gz git-fa9e9c7bc4d6437537a78517f7f6909340e25ad9.zip | |
Fix missing '\n' at end of git-cat-file -t output.
| -rw-r--r-- | cat-file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cat-file.c b/cat-file.c index 6bbb0ca017..6ff9d5576a 100644 --- 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); |
