Fix null URLs introduced by DownloadCommandLink refactoring

Change-Id: I925c6935a4ef4bd537ea4b5952aa52f828421e81
This commit is contained in:
Martin Fick
2012-11-25 22:39:24 -07:00
parent 8e21b9e5be
commit 1305d0e493

View File

@@ -39,7 +39,7 @@ public abstract class DownloadCommandLink extends Anchor implements ClickHandler
@Override
protected void setCurrentUrl(DownloadUrlLink link) {
widget.setVisible(true);
copyLabel.setText("git fetch " + link.urlData
copyLabel.setText("git fetch " + link.getUrlData()
+ " && git checkout FETCH_HEAD");
}
}
@@ -52,7 +52,7 @@ public abstract class DownloadCommandLink extends Anchor implements ClickHandler
@Override
protected void setCurrentUrl(DownloadUrlLink link) {
widget.setVisible(true);
copyLabel.setText("git pull " + link.urlData);
copyLabel.setText("git pull " + link.getUrlData());
}
}
@@ -64,7 +64,7 @@ public abstract class DownloadCommandLink extends Anchor implements ClickHandler
@Override
protected void setCurrentUrl(DownloadUrlLink link) {
widget.setVisible(true);
copyLabel.setText("git fetch " + link.urlData
copyLabel.setText("git fetch " + link.getUrlData()
+ " && git cherry-pick FETCH_HEAD");
}
}
@@ -77,7 +77,7 @@ public abstract class DownloadCommandLink extends Anchor implements ClickHandler
@Override
protected void setCurrentUrl(DownloadUrlLink link) {
widget.setVisible(true);
copyLabel.setText("git fetch " + link.urlData
copyLabel.setText("git fetch " + link.getUrlData()
+ " && git format-patch -1 --stdout FETCH_HEAD");
}
}