fixed update of git repositories with empty git default branch, see issue #903

This commit is contained in:
Sebastian Sdorra
2017-07-07 19:09:46 +02:00
parent b17a23ddc8
commit 785e1b12a9

View File

@@ -176,9 +176,9 @@ Sonia.git.GitSettingsFormPanel = Ext.extend(Sonia.repository.SettingsFormPanel,
prepareUpdate: function(item) {
if (item.defaultBranch) {
var defaultBranch = item.defaultBranch;
delete item.defaultBranch;
this.setDefaultBranch(item, defaultBranch);
}
delete item.defaultBranch;
}
});