I downloaded org.eclipse.jgit.pgm-0.8.4.sh and copied it to /usr/local/bin/jgit in my cygwin installation.
I am trying to use org.eclipse.jgit.pgm.Main directly from the maven exec plugin and am using the sh script to debug the commands.
I can clone my project without a problem with either git or jgit. However, only git seems to work when I try a fetch.
$ git fetch origin
Enter passphrase for key '/home/ssmaring/.ssh/id_rsa':
$ jgit fetch origin
fatal: java.io.FileNotFoundException: C:\cygwin\home\ssmaring\home\ssmaring\.ssh\id_rsa (The system cannot find the path specified)
fatal: git@github.com:smaring/yui-war-overlays.git: java.io.FileNotFoundException: C:\cygwin\home\ssmaring\home\ssmaring\.ssh\id_rsa (The system cannot find the path specified)
Why does jgit think that my home directory is "c:\cygwin\home\ssmaring\home\ssmaring"?
Is there a way to override this?
Thanks,
Steve Maring