summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a8f274)
raw | patch | inline | side by side (parent: 1a8f274)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 12 Mar 2007 23:00:15 +0000 (19:00 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Mar 2007 06:40:18 +0000 (23:40 -0700) |
If we hand run_command RUN_GIT_CMD rather than 0 it will use
the execv_git_cmd path rather than execvp at the OS level.
This is typically the preferred way of running another Git
utility.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
the execv_git_cmd path rather than execvp at the OS level.
This is typically the preferred way of running another Git
utility.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-push.c | patch | blob | history |
diff --git a/builtin-push.c b/builtin-push.c
index 6ab9a28e8c106858a1002971438e46778ff843d8..70b1168fa677fc889543e87b2a3f964b175375c6 100644 (file)
--- a/builtin-push.c
+++ b/builtin-push.c
int dest_refspec_nr = refspec_nr;
const char **dest_refspec = refspec;
const char *dest = uri[i];
- const char *sender = "git-send-pack";
+ const char *sender = "send-pack";
if (!prefixcmp(dest, "http://") ||
!prefixcmp(dest, "https://"))
- sender = "git-http-push";
+ sender = "http-push";
else if (thin)
argv[dest_argc++] = "--thin";
argv[0] = sender;
argv[dest_argc] = NULL;
if (verbose)
fprintf(stderr, "Pushing to %s\n", dest);
- err = run_command_v_opt(argv, 0);
+ err = run_command_v_opt(argv, RUN_GIT_CMD);
if (!err)
continue;
switch (err) {