[PATCH] rsh.c environment variable
authorDaniel Barkalow <barkalow@iabervon.org>
Mon, 6 Jun 2005 20:35:02 +0000 (16:35 -0400)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 7 Jun 2005 00:09:45 +0000 (17:09 -0700)
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>
rsh.c

diff --git a/rsh.c b/rsh.c
index 5d1cb9d578a8e679fc190a9d7d2c842ad811223f..3eb9d9160531de91cbccfc1fdea2e9007a9cbfec 100644 (file)
--- 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++) = ' ';