Fix null URLs introduced by DownloadCommandLink refactoring
Change-Id: I925c6935a4ef4bd537ea4b5952aa52f828421e81
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user