mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
fixed update of git repositories with empty git default branch, see issue #903
This commit is contained in:
@@ -176,9 +176,9 @@ Sonia.git.GitSettingsFormPanel = Ext.extend(Sonia.repository.SettingsFormPanel,
|
|||||||
prepareUpdate: function(item) {
|
prepareUpdate: function(item) {
|
||||||
if (item.defaultBranch) {
|
if (item.defaultBranch) {
|
||||||
var defaultBranch = item.defaultBranch;
|
var defaultBranch = item.defaultBranch;
|
||||||
delete item.defaultBranch;
|
|
||||||
this.setDefaultBranch(item, defaultBranch);
|
this.setDefaultBranch(item, defaultBranch);
|
||||||
}
|
}
|
||||||
|
delete item.defaultBranch;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user