Cannot clone git project eclipse/che from a Che factory
See original GitHub issueDescription
got this error in the wsagent logs:
2017-10-20 10:12:46,939[io-4401-exec-10] [ERROR] [c.a.c.r.RuntimeExceptionMapper 46] - Internal Server Error occurred, error time: 2017-10-20
10:12:46
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /projects/che/.git/refs/remotes/origin/<D0><A1>HE-5335.lock
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.io.File.toPath(File.java:2234)
at org.eclipse.jgit.util.FileUtils.rename(FileUtils.java:261)
at org.eclipse.jgit.internal.storage.file.LockFile.commit(LockFile.java:457)
at org.eclipse.jgit.internal.storage.file.RefDirectoryUpdate.doUpdate(RefDirectoryUpdate.java:122)
at org.eclipse.jgit.lib.RefUpdate$1.execute(RefUpdate.java:517)
at org.eclipse.jgit.lib.RefUpdate.updateImpl(RefUpdate.java:640)
at org.eclipse.jgit.lib.RefUpdate.update(RefUpdate.java:512)
at org.eclipse.jgit.lib.BatchRefUpdate.execute(BatchRefUpdate.java:354)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:224)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1179)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:201)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:135)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:84)
at org.eclipse.che.git.impl.jgit.JGitConnection.executeRemoteCommand(JGitConnection.java:2121)
at org.eclipse.che.git.impl.jgit.JGitConnection.clone(JGitConnection.java:595)
at org.eclipse.che.api.git.GitProjectImporter.cloneRepository(GitProjectImporter.java:247)
at org.eclipse.che.api.git.GitProjectImporter.importSources(GitProjectImporter.java:178)
at org.eclipse.che.api.project.server.ProjectManager.doImportProject(ProjectManager.java:522)
at org.eclipse.che.api.project.server.ProjectManager.importProject(ProjectManager.java:486)
at org.eclipse.che.api.project.server.ProjectService.importProject(ProjectService.java:405)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
It looks like the branch CHE-5335
is not well encoded. We can find back the branch in Github UI by searching for HE-5335
(without the first C letter)
https://github.com/eclipse/che/branches/all?utf8=✓&query=HE-5335
Reproduction Steps
Create a workspace from a factory that clone eclipse/che project. The workspace is created but it cannot clone eclipse/che
OS and version:
Diagnostics:
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Unable to clone repo in ssh or https in 5.12 - EGit / JGit - Eclipse
git operations from the commandline worked fine. So I decided to try and start fresh and removed the local branch and repo from...
Read more >Can't clone Git repository in azure DevOps using HTTPs protocol
sslVerify=false in Git configuration) ... I copy it from DevOps. on my private laptop, same eclipse and URL, can clone Git repository.
Read more >Hudson » Cannot Clone from Git/Stash - Eclipse
The issue was resolved by going into the advanced options under source code management and check the "Use Command line git to clone"...
Read more >EGit / JGit » Can't import Git Projects - Eclipse
I got a problem with adding a git project into eclipse. ... The Git Project works, I can clone it from console -...
Read more >Eclipse and Cross Platform: Unable to clone Git repository ...
You could try using normal EGit. It is already included in the Eclipse version you use. If you can't get it to work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Shall we test with new jgit 4.9 https://github.com/eclipse/che/issues/6884?
Can not reproduce