index 5615c74e7d5f4e5f9d93c0f90c6f57fe8b41442f..fe87e581d21d0465da9e3fadef0454c69640caa7 100644 (file)
--- a/rsh.c
+++ b/rsh.c
snprintf(command, COMMAND_SIZE,
"%s='%s' %s",
GIT_DIR_ENVIRONMENT, path, remote_prog);
+ *path = '\0';
posn = command + strlen(command);
for (i = 0; i < rmt_argc; i++) {
*(posn++) = ' ';