Fix missing '\n' at end of git-cat-file -t output.
This commit is contained in:
@ -21,6 +21,7 @@ int main(int argc, char **argv)
|
|||||||
buf = type;
|
buf = type;
|
||||||
size = strlen(type);
|
size = strlen(type);
|
||||||
type[size] = '\n';
|
type[size] = '\n';
|
||||||
|
size++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
buf = read_object_with_reference(sha1, argv[1], &size, NULL);
|
buf = read_object_with_reference(sha1, argv[1], &size, NULL);
|
||||||
|
Reference in New Issue
Block a user