Can't create a new temp file/folder after upgrading to Win 10
Abstract
TortoiseGit 1.8.14.0
& 1.8.15.0
(C:\Program Files\TortoiseGit\bin)
git version 1.9.5.msysgit.1
(C:\Program Files (x86)\Git\bin)
After upgrading from Win 7 to Win 10
- the Commit dialog is not shown after clicking context menu item Git Commit -> "master". (The others are all good.)
- Can't do the diff from log dialog
- ...
Cause: the security permissions of TortoiseGit temp folder might be different.
The key testing
-
Command line is OK.
"C:\Program Files\TortoiseGit\bin\tortoisegitproc.exe" /command:commit
-
Debug Strings shows a
CFileException
was thrown from inside ofCTGitPathList::LoadFromFile()
(see here) -
Set advanced setting
Debug = true
, and result:
Looks like TortoiseGit creates temp file failed, see code. Or failure of ::GetTempPath(), see code.
Solution
Delete C:\Users\<user>\AppData\Local\Temp\TortoiseGit
folder.
Original Report
When I try to commit a branch from the context menu, no dialog pops up and nothing happens. Git Sync, Show log, Git Rebase.. etc all works.
Noticed this after upgrading from Windows 7 to 10. Committing via command line and other Git tools works.
Not sure if there logs that can give more information about this.
Version info:
TortoiseGit 1.8.14.0 (C:\Program Files\TortoiseGit\bin)
git version 1.9.5.msysgit.1 (C:\Program Files (x86)\Git\bin)