diff options
author | Brandon Williams <bmwill@google.com> | 2017-03-17 10:22:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-17 11:54:50 -0700 |
commit | b58a68c1c1874ff155699d82947c9f026f431cb3 (patch) | |
tree | ff6fceed533478b794de61348ab65dcd775d30a9 /git.c | |
parent | 4fb1c6aad82212051d95b2d0b1f4c877d076bf5d (diff) | |
download | git-b58a68c1c1874ff155699d82947c9f026f431cb3.tar.gz |
setup: allow for prefix to be passed to git commands
In a future patch child processes which act on submodules need a little
more context about the original command that was invoked. This patch
teaches git to use the prefix stored in `GIT_INTERNAL_TOPLEVEL_PREFIX`
instead of the prefix that was potentally found during the git directory
setup process.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -361,8 +361,6 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv) if (!help && get_super_prefix()) { if (!(p->option & SUPPORT_SUPER_PREFIX)) die("%s doesn't support --super-prefix", p->cmd); - if (prefix) - die("can't use --super-prefix from a subdirectory"); } if (!help && p->option & NEED_WORK_TREE) |