From: Daniel Barkalow Date: Mon, 06 Jun 2005 20:35:02 GMT Subject: [PATCH 2/4] rsh.c environment variable Message-ID: In-Reply-To: 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 Index: rsh.c =================================================================== --- 5d261be8a54c55542223536a72c53fab564cc28a/rsh.c (mode:100644 sha1:5d1cb9d578a8e679fc190a9d7d2c842ad811223f) +++ 2dde8ae2d3300fb95e35facac622b9b54990624e/rsh.c (mode:100644 sha1:3eb9d9160531de91cbccfc1fdea2e9007a9cbfec) @@ -36,8 +36,8 @@ *(path++) = '\0'; /* ssh 'cd /; stdio-pull ' */ 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++) = ' ';