This fixes #295 for me. The main culprit was the init make([]string, len(env)) which added 3 zero entries to the slice which broke HOME/USERPROFILE for git status. Used USERPROFILE hack from segement-kube for windows in this case as well, as HOME is not set in gitbash/windows.
I did not find any suitable file for homeEnvName() so i added a new environment.go.
This fixes #295 for me. The main culprit was the init
make([]string, len(env))
which added 3 zero entries to the slice which broke HOME/USERPROFILE for git status. Used USERPROFILE hack from segement-kube for windows in this case as well, as HOME is not set in gitbash/windows.I did not find any suitable file for homeEnvName() so i added a new environment.go.