summaryrefslogtreecommitdiff
path: root/rsh.c
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-06-06 20:35:02 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-07 00:09:45 (GMT)
commit9182f89ab2b0d861226c3ee3d98f9a6a670970e3 (patch)
treeda7452fbd9ad76b68ffbec48c39f12c148f2a4ad /rsh.c
parent95fc75129acf14d980bdd56b9b2ee74190f81d91 (diff)
downloadgit-9182f89ab2b0d861226c3ee3d98f9a6a670970e3.zip
git-9182f89ab2b0d861226c3ee3d98f9a6a670970e3.tar.gz
git-9182f89ab2b0d861226c3ee3d98f9a6a670970e3.tar.bz2
[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 5d1cb9d..3eb9d91 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++) = ' ';