Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343997

Summary: [client] when linking to existing git clone repo, I don't see git commands
Product: [ECD] Orion Reporter: Susan McCourt <susan>
Component: ClientAssignee: 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 CLA 2011-04-27 13:13:55 EDT
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.
Comment 1 Susan McCourt CLA 2011-04-27 13:16:05 EDT
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.
Comment 2 John Arthorne CLA 2011-04-27 14:15:23 EDT
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.
Comment 3 Susan McCourt CLA 2011-04-27 15:25:07 EDT
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.
Comment 4 Susan McCourt CLA 2011-04-27 15:25:50 EDT
marking invalid.