summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dafc88b)
raw | patch | inline | side by side (parent: dafc88b)
author | Serge E. Hallyn <serue@us.ibm.com> | |
Mon, 17 Apr 2006 15:14:48 +0000 (10:14 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 17 Apr 2006 22:06:40 +0000 (15:06 -0700) |
Not sure whether it should be removed, or whether
execv_git_cmd() should return it rather than -1 at bottom.
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
execv_git_cmd() should return it rather than -1 at bottom.
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
exec_cmd.c | patch | blob | history |
diff --git a/exec_cmd.c b/exec_cmd.c
index 590e738969ecfdd7ff2f23da36cdac917215313d..44bb2f23de926db59832a69a3205a320dfe61c4d 100644 (file)
--- a/exec_cmd.c
+++ b/exec_cmd.c
int execv_git_cmd(const char **argv)
{
char git_command[PATH_MAX + 1];
- int len, err, i;
+ int len, i;
const char *paths[] = { current_exec_path,
getenv("GIT_EXEC_PATH"),
builtin_exec_path };
/* execve() can only ever return if it fails */
execve(git_command, (char **)argv, environ);
- err = errno;
-
argv[0] = tmp;
}
return -1;