\n usage in stderr output

fprintf and die sometimes have missing/excessive "\n" in their arguments,
correct the strings where I think it would be appropriate.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Alex Riesen
2005-12-15 08:47:30 +01:00
committed by Junio C Hamano
parent f4a11066cf
commit 7246ed438c
5 changed files with 9 additions and 9 deletions

2
git.c
View File

@ -278,7 +278,7 @@ int main(int argc, char **argv, char **envp)
if (*exec_path != '/') {
if (!getcwd(git_command, sizeof(git_command))) {
fprintf(stderr,
"git: cannot determine current directory");
"git: cannot determine current directory\n");
exit(1);
}
len = strlen(git_command);