Skip to content

Commit 64dbf8c

Browse files
committed
Persist fork origin on first run after upgrade
1 parent a2e9ca2 commit 64dbf8c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

releases.moxie

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ r17: {
55
title: Gitblit ${project.version} Released
66
id: ${project.version}
77
date: ${project.buildDate}
8+
note: ''
9+
If you have forked repositories and your are upgrading to ${project.version}, please DO NOT RELOCATE your repositories folder when running ${project.version} the first time. Gitblit will update forked repository configs on the first execution and it is critical that ${git.repositoriesFolder} points to the same location used by 1.2.x.
10+
''
811
security:
912
- Raw servlet was insecure. If someone knew the exact repository name and path to a file, the raw blob could be retrieved bypassing security constraints. (issue 198)
1013
fixes:
@@ -159,12 +162,12 @@ r16: {
159162
title: Gitblit 1.2.1 Released
160163
id: 1.2.1
161164
date: 2013-01-15
162-
note: ''
165+
html: ''
163166
Because there are now several types of files and folders that must be considered Gitblit data, the default location for data has changed.
164-
165-
You will need to move a few files around when upgrading. Please see the Upgrading section of the <a href="setup.html">setup</a> page for details.
166-
167-
<b>Express Users</b> make sure to update your web.xml file with the ${baseFolder} values!
167+
<p />
168+
You will need to move a few files around when upgrading. Please review the <a href="upgrade_go.html">upgrading GO</a> or <a href="upgrade_war.html">upgrading WAR</a> page for details.
169+
<p />
170+
<b>Express Users</b> make sure to update your web.xml file with the ${baseFolder} values!
168171
''
169172
fixes:
170173
- Fixed nullpointer on recursively calculating folder sizes when there is a named pipe or symlink in the hierarchy

src/main/java/com/gitblit/GitBlit.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,9 @@ private RepositoryModel loadRepositoryModel(String repositoryName) {
20522052
File repoFolder = new File(getRepositoriesFolder(), originRepo);
20532053
if (repoFolder.exists()) {
20542054
model.originRepository = originRepo.toLowerCase();
2055+
2056+
// persist the fork origin
2057+
updateConfiguration(r, model);
20552058
}
20562059
}
20572060
} catch (URISyntaxException e) {

0 commit comments

Comments
 (0)