includeIf breaks calling dashed externals
- From
Bert Wesarg <bert.wesarg@googlemail.com>
- Date
- Apr 14, 2017, 17:04 UTC
- Message-ID
- <CAKPyHN1W175wm1doQHF71vB3PHpU2o=xtEAcZMqZtR=U_Kv0_g@mail.gmail.com>
Dear Duy,
heaving an includeIf in a git config file breaks calling external git commands, most prominently git-gui.
$ git --version git version 2.12.2.599.gcf11a6797 $ git rev-parse --is-inside-work-tree true $ git echo git: 'echo' is not a git command. See 'git --help'.
Did you mean this?
fetch
$ echo '[includeIf "gitdir:does-not-exists"]path = does-not-exists'>>.git/config
$ git rev-parse --is-inside-work-tree true $ git echo fatal: BUG: setup_git_env called without repository
Best, Bert