Community
Participate
Working Groups
I have clones to the orion git repos that I created with msysgit when we first started using git. If I link to these repos from a fresh Orion workspace, I don't see any git commands. Do I have to link at a specific location in the repo for Orion to recognize the repos? I tried linking from the repo root directory, its parent, and also some project directories underneath. I don't get any git commands.
This is a self hosting issue, not one that would hit orionhub users, since they have to clone from Orion. But it'd be nice to understand what's wrong with my clone.
Weird, I do this all the time to use git commands on my repositories checked out with eGit (Orion server projects). It should definitely work. To see if this is a client or server problem, take a look at the JSON response that comes back from the GET /workspace/A in your browser console. It should have the git links like this: { "ChildrenLocation": "http://localhost:8080/file/E/?depth=1", "Directory": true, "ExportLocation": "http://localhost:8080/xfer/export/E.zip", "Git": { "CommitLocation": "http://localhost:8080/git/commit/HEAD/file/E/", "DiffLocation": "http://localhost:8080/git/diff/Default/file/E/", "IndexLocation": "http://localhost:8080/git/index/file/E/", "RemoteLocation": "http://localhost:8080/git/remote/file/E/", "StatusLocation": "http://localhost:8080/git/status/file/E/", "TagLocation": "http://localhost:8080/git/tag/file/E/" }, "ImportLocation": "http://localhost:8080/xfer/import/E", "Location": "http://localhost:8080/file/E/", "Name": "org.eclipse.orion.client.core" }, If the links are missing it could be a server bug. I have seen situations where the git commands don't appear in the UI, but then after a refresh or two they appear.
This seems to be working now. I deleted my workspace and started from scratch. First I cloned the repo from eclipse.org and the git commands appear as expected. Then I linked to my other preexisting clone, at the top level, and commands appear. Then I linked to a subfolder, the commands appear. Just to be certain, I deleted the workspace again, and this time just linked to specific projects in my preexisting clone. Working fine. I have used the same workspace for months and months and I can only conclude that early in the git support, something went wrong, because prior to killing my workspace I ran into oddities with missing commands, etc. all the time.
marking invalid.