github / GitPad

Notepad.exe as Git commit editor
MIT License
187 stars 69 forks source link

Unhandled Exception: System.Exception: GetTokenInformation failed #7

Closed asgeo1 closed 12 years ago

asgeo1 commented 12 years ago

I installed "GitHub for Windows" on my Windows XP VM, as well as on the some other Windows XP machines.

Each one has the same issue. GitPad crashes when invoked - e.g. git commit

C:\Documents and Settings\Adam\My Documents\GitHub\arms [master +1 ~0 -0 !]> git commit --amend

Unhandled Exception: System.Exception: GetTokenInformation failed
   at Gitpad.Program.IsProcessElevated()
   at Gitpad.Program.Main(String[] args)
error: There was a problem with the editor 'gitpad'.
Please supply the message using either -m or -F option.

The same thing happens if I download the latest GitPad.exe and try to install it.

What could be wrong?

ayca commented 12 years ago

I'm having the same problem with same scenario and "git commit -a --amend" command. Is there a fix or a workaround for this problem?

EDIT

I've found the workaround. The exception is thrown because no message was sent with the command. If you use 'git commit -a --amend -m "your message here"' last commit will be fixed nice and easy but the commit message will be changed.

anaisbetts commented 12 years ago

Hm. I wonder why we haven't heard about this until now.

ayca commented 12 years ago

May be it's related to the latest version of github for windows application. I'm not sure.

anaisbetts commented 12 years ago

@ayca Is your computer managed in a corporate environment? Do you run as a Standard User?

ayca commented 12 years ago

Yes, I'm using windows server 2003 for business purposes. I have administrator rights. So far I didn't experience any other problems with gitpad.