From: James Moger Date: Sat, 13 Jul 2013 15:04:33 +0000 (-0400) Subject: Persist fork origin on first run after upgrade X-Git-Tag: v1.3.0~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=64dbf8c195c71abd89b071e127b6cdc9f1949671;p=gitblit.git Persist fork origin on first run after upgrade --- 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 setup page for details. - - Express Users make sure to update your web.xml file with the ${baseFolder} values! +

+ You will need to move a few files around when upgrading. Please review the upgrading GO or upgrading WAR page for details. +

+ Express Users 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) {