| Summary: | [client] when linking to existing git clone repo, I don't see git commands | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Susan McCourt <susan> |
| Component: | Client | Assignee: | Project Inbox <e4.orion-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | john.arthorne |
| Version: | 0.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Susan McCourt
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. |