Browse files

bug 377789 - "Switch to Remote" should link to

"git-log.html#/gitapi/commit/..." not "/gitapi/remote..."
https://bugs.eclipse.org/bugs/show_bug.cgi?id=377789
  • Loading branch information...
1 parent 9f15c2f commit d08865daa6b640effec99fee23a7e18fe2474f0e Tomasz Zarna committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
View
2 bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
@@ -1385,7 +1385,7 @@ var exports = {};
tooltip: "Show the log for the corresponding remote tracking branch",
id : "eclipse.orion.git.switchToRemote",
hrefCallback : function(data) {
- return require.toUrl("git/git-log.html")+"#" + data.items.toRef.RemoteLocation[0].Children[0].Location + "?page=1";
+ return require.toUrl("git/git-log.html")+"#" + data.items.toRef.RemoteLocation[0].Children[0].CommitLocation + "?page=1";
},
visibleWhen : function(item) {
return item.toRef != null && item.toRef.Type === "Branch" && item.toRef.Current && item.toRef.RemoteLocation && item.toRef.RemoteLocation.length===1 && item.toRef.RemoteLocation[0].Children.length===1;

0 comments on commit d08865d

Please sign in to comment.