summaryrefslogtreecommitdiff
path: root/exec_cmd.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-04-17 23:15:20 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-04-17 23:15:20 -0700
commite5de825fda5795c2607ae870fcc4369db1ae77c2 (patch)
tree63e7ed4fe514a415aee3aec516ba7b3e8e7beb59 /exec_cmd.c
parentMerge branch 'jc/boundary' into next (diff)
parentpacked_object_info_detail(): check for corrupt packfile. (diff)
downloadtgif-e5de825fda5795c2607ae870fcc4369db1ae77c2.tar.xz
Merge branch 'master' into next
* master: packed_object_info_detail(): check for corrupt packfile. cleanups: remove unused variable from exec_cmd.c cleanups: prevent leak of two strduped strings in config.c cleanups: Remove impossible case in quote.c cleanups: Remove unused vars from combine-diff.c cleanups: Fix potential bugs in connect.c Allow empty lines in info/grafts
Diffstat (limited to 'exec_cmd.c')
-rw-r--r--exec_cmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/exec_cmd.c b/exec_cmd.c
index 590e738969..44bb2f23de 100644
--- a/exec_cmd.c
+++ b/exec_cmd.c
@@ -32,7 +32,7 @@ const char *git_exec_path(void)
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 };
@@ -85,8 +85,6 @@ int execv_git_cmd(const char **argv)
/* execve() can only ever return if it fails */
execve(git_command, (char **)argv, environ);
- err = errno;
-
argv[0] = tmp;
}
return -1;