@matheusbsbs / matheus-bagliano / commits / 9cb90b80fc
Fork 0

git-tar-tree: don't RUN_SETUP

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> Signed-off-by: Junio C Hamano <junkio@cox.net>

Rene Scharfe committed Oct 8, 2006 at 15:44 UTC 9cb90b80fc1ec09d8e51451b18a7c8ef7eac8908
1 file changed +1 -1
git.c
+1 -1
@@ -258,7 +258,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
258 { "show", cmd_show, RUN_SETUP | USE_PAGER },
259 { "stripspace", cmd_stripspace },
260 { "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
261 - { "tar-tree", cmd_tar_tree, RUN_SETUP },
261 + { "tar-tree", cmd_tar_tree },
262 { "unpack-objects", cmd_unpack_objects, RUN_SETUP },
263 { "update-index", cmd_update_index, RUN_SETUP },
264 { "update-ref", cmd_update_ref, RUN_SETUP },