Skip to content

Commit

Permalink
Fix missing '\n' at end of git-cat-file -t output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed May 2, 2005
1 parent 11e7d5c commit fa9e9c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cat-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa9e9c7

Please sign in to comment.