X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=rsh.c;h=3eb9d9160531de91cbccfc1fdea2e9007a9cbfec;hb=9182f89ab2b0d861226c3ee3d98f9a6a670970e3;hp=5d1cb9d578a8e679fc190a9d7d2c842ad811223f;hpb=95fc75129acf14d980bdd56b9b2ee74190f81d91;p=git.git diff --git a/rsh.c b/rsh.c index 5d1cb9d5..3eb9d916 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 '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++) = ' ';