Trim input for branch and revision when creating a new branch
Change-Id: I96d0efe87184abf3efa6bf7e65ac7e65a4e72d82 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:

committed by
David Pursehouse

parent
bd5629718f
commit
c7ebcf12e5
@@ -165,13 +165,13 @@ public class ProjectBranchesScreen extends ProjectScreen {
|
||||
}
|
||||
|
||||
private void doAddNewBranch() {
|
||||
final String branchName = nameTxtBox.getText();
|
||||
final String branchName = nameTxtBox.getText().trim();
|
||||
if ("".equals(branchName)) {
|
||||
nameTxtBox.setFocus(true);
|
||||
return;
|
||||
}
|
||||
|
||||
final String rev = irevTxtBox.getText();
|
||||
final String rev = irevTxtBox.getText().trim();
|
||||
if ("".equals(rev)) {
|
||||
irevTxtBox.setText("HEAD");
|
||||
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
|
||||
|
Reference in New Issue
Block a user