Skip to content

Commit 745f87d

Browse files
Robert FührichtRobert Führicht
authored andcommitted
fixes settings not being persisted
1 parent e7cc8ed commit 745f87d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/gitblit/manager/RepositoryManager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,14 @@ public void updateConfiguration(Repository r, RepositoryModel repository) {
15581558
// override default
15591559
config.setBoolean(Constants.CONFIG_GITBLIT, null, "requireApproval", repository.requireApproval);
15601560
}
1561+
config.setInt(Constants.CONFIG_GITBLIT, null, "requireScore", repository.requireScore);
1562+
if (settings.getBoolean(Keys.tickets.writeSignoffCommit, false) == repository.writeSignoffCommit) {
1563+
// use default
1564+
config.unset(Constants.CONFIG_GITBLIT, null, "writeSignoffCommit");
1565+
} else {
1566+
// override default
1567+
config.setBoolean(Constants.CONFIG_GITBLIT, null, "writeSignoffCommit", repository.writeSignoffCommit);
1568+
}
15611569
if (!StringUtils.isEmpty(repository.mergeTo)) {
15621570
config.setString(Constants.CONFIG_GITBLIT, null, "mergeTo", repository.mergeTo);
15631571
}

0 commit comments

Comments
 (0)