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

[PATCH 3/3] Trivial optimization

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Oct 10, 2005, 20:50 UTC
Message-ID
<434AD41A.2040903@zytor.com>
GIT_DIR_ENVIRONMENT is always a string literal

--- commit db6b7c2ba5e59184de22c55b36c21b5ef94da325 tree dc809b653f9d7dcfa096ca763987ccb0e87599ba parent 16e46159b554116a7d95a206913fcdf7e79e07d0 author Peter Anvin <hpa@tazenda.sc.orionmulti.com> Mon, 10 Oct 2005 12:33:51 -0700 committer Peter Anvin <hpa@tazenda.sc.orionmulti.com> Mon, 10 Oct 2005 12:33:51 -0700

 rsh.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/rsh.c b/rsh.c
index 8278eab..64c4809 100644
--- a/rsh.c
+++ b/rsh.c
@@ -73,8 +73,7 @@ int setup_connection(int *fd_in, int *fd
 	posn = command;
 	of = 0;
 	of |= add_to_string(&posn, &sizen, "env ", 0);
-	of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT, 0);
-	of |= add_to_string(&posn, &sizen, "=", 0);
+	of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT "=", 0);
 	of |= add_to_string(&posn, &sizen, path, 1);
 	of |= add_to_string(&posn, &sizen, " ", 0);
 	of |= add_to_string(&posn, &sizen, remote_prog, 1);
Message 1 of 1 in “Trivial optimization”
  1. 3/3 Trivial optimizationH. Peter Anvin, Oct 10, 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.