diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2005-06-06 16:35:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-06 17:09:45 -0700 |
commit | 9182f89ab2b0d861226c3ee3d98f9a6a670970e3 (patch) | |
tree | da7452fbd9ad76b68ffbec48c39f12c148f2a4ad /rsh.c | |
parent | 95fc75129acf14d980bdd56b9b2ee74190f81d91 (diff) | |
download | git-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) = ' '; |