github / GitPad

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

GitPad expecting crazy cygdrive paths? #21

Closed BrainSlugs83 closed 9 years ago

BrainSlugs83 commented 9 years ago

When I try to use "git commit" after installing, I get the following exception:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\cygdrive\c\Projects\[ProjectName]\.git\COMMIT_EDITMSG'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path, Encoding encoding)
   at Gitpad.Program.Main(String[] args)

When I press CTRL+C (it just sits there locked), I get the following two lines of text: error: There was a problem with the editor '~/AppData/Roaming/GitPad/GitPad.exe'. Please supply the message using either -m or -F option.

Note, the repository I'm using (and current directory in the command prompt session) is "C:\Projects[ProjectName]" (no brackets on the actual project name).

shiftkey commented 9 years ago

What version of Git are you running?

BrainSlugs83 commented 9 years ago

This was my bad -- apparently cygwin\bin was in my path (and not the version of git I had installed) and I was using that version of Git outside of bash. Total PEBCAK.

shiftkey commented 9 years ago

@BrainSlugs83 no problem, thanks for confirming!