gitmail
gitmail copied to clipboard
Runtime error for path - Windows
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 : NativeCommandErrorfatal: 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