git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] ssh-push: Don't add '/' to pathname

From
SVSven Verdoolaege <skimo@liacs.nl>
Date
Jun 17, 2005, 08:13 UTC
Message-ID
<20050617081318.GA23688@pc117b.liacs.nl>
In-Reply-To
<20050614103738.GA14483@pc117b.liacs.nl>
Ok, I'm stupid.
This patch has actually been tested.
skimo

-- ssh-push.c: Fix handling of ssh://host/path URLs

Previous patch to fix host:path notation broke handling of ssh://host/path notation.

Signed-off-by: Sven Verdoolaege <skimo@liacs.nl>

--- commit 4fd62062eb2d52d32cb771feb05bf1ee29d760f9 tree 75ea11a1b6bf7ca17a274b3a8ce2191e7b815e87 parent 7875b50d1a9928e683299b283bfe94778b6c344e author Sven Verdoolaege <skimo@liacs.nl> Fri, 17 Jun 2005 10:08:27 +0200 committer Sven Verdoolaege <skimo@liacs.nl> Fri, 17 Jun 2005 10:08:27 +0200

 rsh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/rsh.c b/rsh.c
--- a/rsh.c
+++ b/rsh.c
@@ -41,6 +41,7 @@ int setup_connection(int *fd_in, int *fd
 	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++) = ' ';
Previous: Sven Verdoolaege
Message 2 of 2 in “ssh-push: Don't add '/' to pathname”
  1. ssh-push: Don't add '/' to pathnameSven Verdoolaege, Jun 14, 2005
  2. Sven VerdoolaegeJun 17, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.