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

[PATCH] git-tar-tree: don't RUN_SETUP

From
Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Oct 8, 2006, 13:44 UTC
Message-ID
<452900D2.3070707@lsrfire.ath.cx>
In-Reply-To
<4528F8AD.2040307@gmail.com>

Noted by Jiri Slaby, git-tar-tree --remote doesn't need to be run from inside of a git archive. Since git-tar-tree is now only a wrapper for git-archive, which calls setup_git_directory() as needed, we should drop the flag RUN_SETUP.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
diff --git a/git.c b/git.c
index b8e8622..d7103a4 100644
--- a/git.c
+++ b/git.c
@@ -258,7 +258,7 @@ static void handle_internal_command(int 
 		{ "show", cmd_show, RUN_SETUP | USE_PAGER },
 		{ "stripspace", cmd_stripspace },
 		{ "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
-		{ "tar-tree", cmd_tar_tree, RUN_SETUP },
+		{ "tar-tree", cmd_tar_tree },
 		{ "unpack-objects", cmd_unpack_objects, RUN_SETUP },
 		{ "update-index", cmd_update_index, RUN_SETUP },
 		{ "update-ref", cmd_update_ref, RUN_SETUP },
Previous: Rene Scharfe
Message 3 of 3 in “git-tar-tree & NEEDS_PREFIX”
  1. Jiri SlabyOct 8, 2006
  2. Rene ScharfeOct 8, 2006
  3. git-tar-tree: don't RUN_SETUPRene Scharfe, Oct 8, 2006

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.