Skip to content

Runtime error for path - Windows  #7

@rosam03

Description

@rosam03

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions