summaryrefslogtreecommitdiff
path: root/rsh.c
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-06-06 16:35:02 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-06 17:09:45 -0700
commit9182f89ab2b0d861226c3ee3d98f9a6a670970e3 (patch)
treeda7452fbd9ad76b68ffbec48c39f12c148f2a4ad /rsh.c
parent95fc75129acf14d980bdd56b9b2ee74190f81d91 (diff)
downloadgit-9182f89ab2b0d861226c3ee3d98f9a6a670970e3.tar.gz
[PATCH] rsh.c environment variable
rsh.c used to set the environment variable for the object database when invoking the remote command. Now that there is a GIT_DIR variable, use that instead. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'rsh.c')
-rw-r--r--rsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsh.c b/rsh.c
index 5d1cb9d578..3eb9d91605 100644
--- a/rsh.c
+++ b/rsh.c
@@ -36,8 +36,8 @@ int setup_connection(int *fd_in, int *fd_out, char *remote_prog,
*(path++) = '\0';
/* ssh <host> 'cd /<path>; stdio-pull <arg...> <commit-id>' */
snprintf(command, COMMAND_SIZE,
- "cd /%s; %s=objects %s",
- path, DB_ENVIRONMENT, remote_prog);
+ "%s='/%s' %s",
+ GIT_DIR_ENVIRONMENT, path, remote_prog);
posn = command + strlen(command);
for (i = 0; i < rmt_argc; i++) {
*(posn++) = ' ';