summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-12-08 13:03:25 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-09 14:52:57 -0800
commit89c8626557621ef000930da3c8a23fa03ad7e01a (patch)
treea144c8f2a8ccdf3ad0313a9443fdb44065fc1ca4 /git.c
parent90c0011619bd4cd4b14c366ab7a9affacb43276a (diff)
downloadgit-89c8626557621ef000930da3c8a23fa03ad7e01a.tar.gz
submodule helper: support super prefix
Just like main commands in Git, the submodule helper needs access to the superproject prefix. Enable this in the git.c but have its own fuse in the helper code by having a flag to turn on the super prefix. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index efa1059fe0..98dcf6c518 100644
--- a/git.c
+++ b/git.c
@@ -493,7 +493,7 @@ static struct cmd_struct commands[] = {
{ "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
{ "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
{ "stripspace", cmd_stripspace },
- { "submodule--helper", cmd_submodule__helper, RUN_SETUP },
+ { "submodule--helper", cmd_submodule__helper, RUN_SETUP | SUPPORT_SUPER_PREFIX},
{ "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
{ "tag", cmd_tag, RUN_SETUP },
{ "unpack-file", cmd_unpack_file, RUN_SETUP },