Closed dkokic closed 12 years ago
dkokic, this exception is reported by JGit if provided repositoryDirectory
directory doesn't contain Git repository. But it seems jgit doesn't like paths like foo/..
, so I added canonicalization of provided path before giving it to jgit. It was added to 1.2.6
version, binaries will appear in maven central shortly, before that you can download ant task here
Thank-you for your help. Actually, it was my mistake (I used ant.home instead of basedir). Both 1.2.5 and 1.2.6 works as expected.
Additional Information:
Article: Gradle troubleshooting: One of setGitDir or setWorkTree must be called (grgit)
ant script invoked from a custom eclipse builder:
The mentioned exception is noted in JGit project, but should have been fixed long time ago.