EGit and Google repo not working on Windows with Cygwin [message #904840] |
Wed, 29 August 2012 08:57 |
Ken Wenzel Messages: 51 Registered: July 2009 |
Member |
|
|
Hello,
we are using repo on Windows with Cygwin to manage multiple git repositories for our projects.
Repo mirrors a set of git repositories in its .repo/projects directory (e.g. .repo/projects/com.google.inject) and then creates folders for each project (e.g. com.google.inject) where the files under .git are symlinked to the corresponding repository in .repo/projects.
For example, the git config file 'com.google.inject/.git/config' would be linked in the following way:
config -> ../../.repo/projects/com.google.inject.git/config
If the project 'com.google.inject' is imported into Eclipse with an EGit version > 1.1.0 the following exception occurs:
java.lang.IllegalArgumentException: Repository config file D:\Projekte\komma_rap\com.google.inject\.git\config invalid Cannot read file D:\Projekte\komma_rap\com.google.inject\.git\config
at org.eclipse.jgit.lib.BaseRepositoryBuilder.loadConfig(BaseRepositoryBuilder.java:680)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.getConfig(BaseRepositoryBuilder.java:655)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.guessWorkTreeOrFail(BaseRepositoryBuilder.java:691)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.setupWorkTree(BaseRepositoryBuilder.java:621)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.setup(BaseRepositoryBuilder.java:552)
at org.eclipse.jgit.storage.file.FileRepository.<init>(FileRepository.java:131)
at org.eclipse.egit.core.RepositoryCache.lookupRepository(RepositoryCache.java:52)
...
While EGit version 1.1.0 is able to handle the project with symlinks, it seems that there was a change in JGit which prevents this from working on Windows (there are no problems under Ubuntu).
Do you have any suggestions for me?
Best regards,
Ken Wenzel
[Updated on: Fri, 31 August 2012 11:55] Report message to a moderator
|
|
|
|
Re: EGit and Google repo not working on Windows XP [message #904865 is a reply to message #904845] |
Wed, 29 August 2012 09:39 |
Ken Wenzel Messages: 51 Registered: July 2009 |
Member |
|
|
- how do you symlink on Windows XP ?
I use a Cygwin environment for git, repo (with python) and also some basic tools like ln. The resulting symlink files start with:
- JGit doesn't support symlinks yet [1]
I do not mean symlinks contained in a git repository but
symlinks to a git repository (e.g. linked git config files as in my example above).
This works with EGit and JGit in version 1.1.0 under Windows XP but stopped working with newer versions. It also works under Ubuntu with any newer version of EGit.
[Updated on: Wed, 29 August 2012 09:41] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02646 seconds