summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 81035bb)
raw | patch | inline | side by side (parent: 81035bb)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 3 Mar 2007 16:14:25 +0000 (17:14 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 3 Mar 2007 20:26:50 +0000 (12:26 -0800) |
It used to roll its own setup.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-archive.c | patch | blob | history | |
git.c | patch | blob | history |
diff --git a/builtin-archive.c b/builtin-archive.c
index f613ac25164beadb4874d8a07b6bbac62796a530..5265764b6fa8d0a5dde76473e66f6bc7278fc8aa 100644 (file)
--- a/builtin-archive.c
+++ b/builtin-archive.c
memset(&ar, 0, sizeof(ar));
tree_idx = parse_archive_args(argc, argv, &ar);
- if (prefix == NULL)
- prefix = setup_git_directory();
argv += tree_idx;
parse_treeish_arg(argv, &ar.args, prefix);
index 45265f14d0cc225dedcae84b7e2ef5700b966f20..660b0a6dc2ebdd5ee30d2f1d0bfa991094c3253e 100644 (file)
--- a/git.c
+++ b/git.c
{ "add", cmd_add, RUN_SETUP | NOT_BARE },
{ "annotate", cmd_annotate, USE_PAGER },
{ "apply", cmd_apply },
- { "archive", cmd_archive },
+ { "archive", cmd_archive, RUN_SETUP },
{ "blame", cmd_blame, RUN_SETUP },
{ "branch", cmd_branch, RUN_SETUP },
{ "cat-file", cmd_cat_file, RUN_SETUP },