diff options
author | James Moger <james.moger@gitblit.com> | 2013-07-13 11:04:33 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-07-13 11:04:33 -0400 |
commit | 64dbf8c195c71abd89b071e127b6cdc9f1949671 (patch) | |
tree | da48ce673c16453b44f082b2a6069d79fffd6a01 | |
parent | a2e9ca209764da5e056ba527709d87b0d0f6b934 (diff) | |
download | gitblit-64dbf8c195c71abd89b071e127b6cdc9f1949671.tar.gz gitblit-64dbf8c195c71abd89b071e127b6cdc9f1949671.zip |
Persist fork origin on first run after upgrade
-rw-r--r-- | releases.moxie | 13 | ||||
-rw-r--r-- | src/main/java/com/gitblit/GitBlit.java | 3 |
2 files changed, 11 insertions, 5 deletions
diff --git a/releases.moxie b/releases.moxie index 8cff7711..3772ed43 100644 --- a/releases.moxie +++ b/releases.moxie @@ -5,6 +5,9 @@ r17: { title: Gitblit ${project.version} Released
id: ${project.version}
date: ${project.buildDate}
+ note: ''
+ 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.
+ ''
security:
- 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)
fixes:
@@ -159,12 +162,12 @@ r16: { title: Gitblit 1.2.1 Released
id: 1.2.1
date: 2013-01-15
- note: ''
+ html: ''
Because there are now several types of files and folders that must be considered Gitblit data, the default location for data has changed.
-
- 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.
-
- <b>Express Users</b> make sure to update your web.xml file with the ${baseFolder} values!
+ <p />
+ 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.
+ <p />
+ <b>Express Users</b> make sure to update your web.xml file with the ${baseFolder} values!
''
fixes:
- Fixed nullpointer on recursively calculating folder sizes when there is a named pipe or symlink in the hierarchy
diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java index 6f2f70cc..301591f5 100644 --- a/src/main/java/com/gitblit/GitBlit.java +++ b/src/main/java/com/gitblit/GitBlit.java @@ -2052,6 +2052,9 @@ public class GitBlit implements ServletContextListener { File repoFolder = new File(getRepositoriesFolder(), originRepo); if (repoFolder.exists()) { model.originRepository = originRepo.toLowerCase(); + + // persist the fork origin + updateConfiguration(r, model); } } } catch (URISyntaxException e) { |