Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.c: remove excess output for debugging when command is too long.
author
Junio C Hamano
<junkio@cox.net>
Mon, 5 Dec 2005 05:24:22 +0000
(21:24 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 5 Dec 2005 07:19:31 +0000
(23:19 -0800)
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>
git.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
18d1e70
)
diff --git
a/git.c
b/git.c
index 0975fc7ac2673c952bfdf1372d2e22c001ecf7d5..ee5048aaaa2f814f00a6a3fb937bf0d15e46f50c 100644
(file)
--- a/
git.c
+++ b/
git.c
@@
-289,7
+289,7
@@
int main(int argc, char **argv, char **envp)
len += snprintf(git_command + len, sizeof(git_command) - len,
"/git-%s", argv[i]);
if (sizeof(git_command) <= len) {
len += snprintf(git_command + len, sizeof(git_command) - len,
"/git-%s", argv[i]);
if (sizeof(git_command) <= len) {
- fprintf(stderr, "git: command name given is too long
(%d)\n", len
);
+ fprintf(stderr, "git: command name given is too long
.\n"
);
exit(1);
}
exit(1);
}