Skip to content

Commit b270c63

Browse files
author
Junio C Hamano
committed
git.c: remove excess output for debugging when command is too long.
When the given command name was too long, we exited with a message with the number of bytes of the final command name inside parentheses, without saying what that number is. It was only meant as a debugging aid while development, so remove it. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 18d1e70 commit b270c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ int main(int argc, char **argv, char **envp)
289289
len += snprintf(git_command + len, sizeof(git_command) - len,
290290
"/git-%s", argv[i]);
291291
if (sizeof(git_command) <= len) {
292-
fprintf(stderr, "git: command name given is too long (%d)\n", len);
292+
fprintf(stderr, "git: command name given is too long.\n");
293293
exit(1);
294294
}
295295

0 commit comments

Comments
 (0)