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>
Junio C Hamano committed
Dec 4, 2005 at 21:24 UTC
b270c634b7d3dd197de6d155770fd7b044d76c5c
1 file changed
+1
-1
git.c
+1
-1
@@ -289,7 +289,7 @@ int main(int argc, char **argv, char **envp)
289
len += snprintf(git_command + len, sizeof(git_command) - len,
290
"/git-%s", argv[i]);
291
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");
293
exit(1);
294
}
295