gitmail icon indicating copy to clipboard operation
gitmail copied to clipboard

Runtime error for path - Windows

Open rosam03 opened this issue 9 years ago • 0 comments

I get the following error when running through Windows command line:

$ ruby gitmail.rb levthedev/GitMail

ruby : Cloning into bare repository 'C:/Users/x182834/AppData/Local/Temp/GitMail20160321-3940-9tdj70'... At line:1 char:1

  • ruby gitmail.rb levthedev/GitMail
  • - CategoryInfo          : NotSpecified: (Cloning into ba...3940-9tdj70'...:String) [], RemoteException
    - FullyQualifiedErrorId : NativeCommandError
    
    

fatal: ambiguous argument '%ae%n%cn': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'

The fix in gitmail.rb: @emails = 'git log --pretty=format:'%an--%ae%n%cn--%ce''

I will test on mac later to check OSX compatibility with this fix -- expect a PR

rosam03 avatar Mar 21 '16 23:03 rosam03