Crazy behaviour - %GIT_DIR% set to all process
By @ch3cooli on October 24, 2012 15:03 (imported from Google Code)
What steps will reproduce the problem?
- Modify a file in C:\2\TortoiseGit\ext\libgit2
- Set assume unchanged in Shell Git tab
- Goto C:\2\TortoiseGit\ext
- Right click -> Commit
- Warn "User name not set"
- Goto C:\2\TortoiseGit
- Warn "User name not set"
- Right click -> log
Wow! the log list shows the history of libgit2, but the title bar is C:\2\TortoiseGit
and current directory is also C:\2\TortoiseGit
What version of TortoiseGit and msysgit are you using? On
what operating system?
TortoiseGit 1.7.14 Official
msysgit 1.7.11
Please provide any additional information below.
I use Process Explorer to further inspect the program, and I find %GIT_DIR% is set in TortoiseProc.exe
%GIT_DIR% = C:/2/TortoiseGit/.git/modules/ext/libgit2
After that, when I execute every new program, %GIT_DIR% is also set to each new instance of new process.
But such variable is not saved to system environment variable settings. It can return to normal after a reboot.