summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95fc751)
raw | patch | inline | side by side (parent: 95fc751)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Mon, 6 Jun 2005 20:35:02 +0000 (16:35 -0400) | ||
committer | Linus 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>
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 | patch | blob | history |
index 5d1cb9d578a8e679fc190a9d7d2c842ad811223f..3eb9d9160531de91cbccfc1fdea2e9007a9cbfec 100644 (file)
--- a/rsh.c
+++ b/rsh.c
*(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++) = ' ';