Community
Participate
Working Groups
Before we add a picker in the clone UI to select where to push changes from our active local branch, I would like to push changes to the default remote branch. To do it I need DefaultRemoteBranchLocation in the branch JSON.
Fixed with http://git.eclipse.org/c/e4/org.eclipse.orion.server.git/commit/?id=99e6ad7f37393b7a126b0c9e2001b3d8f766b38f.
Example: Response for http://localhost:8080/gitapi/branch/file/x/ is {"Children": [ { ... "Location": "http://localhost:8080/gitapi/branch/b/c/file/x/", "Name": "b/c", "RemoteLocation": "http://localhost:8080/gitapi/remote/origin/master/file/x/", "Type": "Branch" }, { ... "Location": "http://localhost:8080/gitapi/branch/elo/file/x/", "Name": "elo", "RemoteLocation": "http://localhost:8080/gitapi/remote/origin/master/file/x/", "Type": "Branch" }, { ... "Location": "http://localhost:8080/gitapi/branch/master/file/x/", "Name": "master", "RemoteLocation": "http://localhost:8080/gitapi/remote/origin/master/file/x/", "Type": "Branch" } ]} RemoteLocation location is fine only for the active local branch. Response for http://localhost:8080/gitapi/branch/elo/file/x/ { "CloneLocation": "http://localhost:8080/gitapi/clone/file/x/", "CommitLocation": "http://localhost:8080/gitapi/commit/elo/elo/file/x/", "Current": false, "HeadLocation": "http://localhost:8080/gitapi/commit/HEAD/elo/file/x/", "Location": "http://localhost:8080/gitapi/branch/elo/file/x/", "Name": "elo", "RemoteLocation": "http://localhost:8080/gitapi/remote/origin/master/elo/file/x/", "Type": "Branch" } RemoteLocation is wrong.
I'm investigating.
Fixed with cecf50c93abbcf0827146da8b446bedaca122a0e and 083c628264feed5d0d0e72213225b9bac543f34d.