"Submodule registered for path" output with config aliases mixed in

31 views
Skip to first unread message

Mateusz Łoskot

unread,
Feb 19, 2019, 12:15:19 PM2/19/19
to git-for-windows

Hi,

(This is forward of my original post to Git list,
in case the issue is related to my setup of Git for Windows)

$ git version
git version 2.20.1.windows.1

I'm running `git clone --recurse-submodules https://XXX`
The command seems to run well and completes with success.

However, I noticed strange output from git:

```
Submodule 'Binary/A' (https://XXX) registered for path '!f() {
~/AppData/Local/Fork/Fork.exe $PWD; }; fBinary/A'
Submodule 'Binary/B' (https://XXX) registered for path 'À   ♂♦Binary/Intergraph'
Submodule 'Binary/C' (https://XXX) registered for path '!sh -c 'git
log $1@{1}..$1@{0} $@'Binary/C'
Submodule 'Binary/D' (https://XXX) registered for path 'ls-files -o -i
--exclude-standardBinary/D'
Submodule 'Binary/E' (https://XXX) registered for path
'mergetool.TortoiseGitMerge.trustexitcodeBinary/E'
```

I managed to identify where that garbage injections come from:
from git aliases I've got configured [1]

Could anyone explain what is happening here?
Is there anything wrong with my ~/.gitconfig [1] ?


[1] https://github.com/mloskot/wsl-config/tree/master/git

Best regards,
--
Mateusz Łoskot, http://mateusz.loskot.net

Mateusz Łoskot

unread,
Feb 21, 2019, 6:01:42 AM2/21/19
to git-for-windows

On Tuesday, 19 February 2019 18:15:19 UTC+1, Mateusz Łoskot wrote:

(This is forward of my original post to Git list,
in case the issue is related to my setup of Git for Windows)

$ git version
git version 2.20.1.windows.1

I'm running `git clone --recurse-submodules https://XXX`
The command seems to run well and completes with success.

However, I noticed strange output from git:

```
Submodule 'Binary/A' (https://XXX) registered for path '!f() {
~/AppData/Local/Fork/Fork.exe $PWD; }; fBinary/A'
Submodule 'Binary/B' (https://XXX) registered for path 'À   ♂♦Binary/Intergraph'
Submodule 'Binary/C' (https://XXX) registered for path '!sh -c 'git
log $1@{1}..$1@{0} $@'Binary/C'
Submodule 'Binary/D' (https://XXX) registered for path 'ls-files -o -i
--exclude-standardBinary/D'
Submodule 'Binary/E' (https://XXX) registered for path
'mergetool.TortoiseGitMerge.trustexitcodeBinary/E'
```

I managed to identify where that garbage injections come from:
from git aliases I've got configured [1]

Could anyone explain what is happening here?


FYI, It was a bug in Git, fixed in 2.21.

I've received response to my original post,
https://public-inbox.org/git/20190221041...@sigill.intra.peff.net/:

> Certainly we fixed a bunch of getenv() problems in the upcoming 2.21 release,
> including 8aac69038f (get_super_prefix(): copy getenv() result, 2019-01-11).


I've verified the problem no longer occurs in git version 2.21.0.rc2.windows.1
Reply all
Reply to author
Forward
0 new messages