James Moger
2013-03-29 ea4769096f9f303964107e2c3d95c63857588fc5
Fixed regression with individually symlinked repositories (issue-217)
2 files modified
6 ■■■■■ changed files
releases.moxie 1 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/GitBlit.java 5 ●●●●● patch | view | raw | blame | history
releases.moxie
@@ -15,6 +15,7 @@
     - Fixed incorrect icon file name for .doc files (issue 200)
     - Do not queue emails with no recipients (issue 201)
     - Disable view and blame links for deleted blobs (issue 216)
     - Fixed 1.2.x regression with individually symlinked repositories (issue 217)
     - Fixed NPE in 1.2.1 Federation Client (issue 219)
     - Fixed extracting Groovy scripts on Express installs (issue 220)
     - Ensure Redmine url is properly formatted (issue 223)
src/main/java/com/gitblit/GitBlit.java
@@ -1656,6 +1656,11 @@
        } else {
            model.name = com.gitblit.utils.FileUtils.getRelativePath(basePath, r.getDirectory().getParentFile());
        }
        if (StringUtils.isEmpty(model.name)) {
            // Repository is NOT located relative to the base folder because it
            // is symlinked.  Use the provided repository name.
            model.name = repositoryName;
        }
        model.hasCommits = JGitUtils.hasCommits(r);
        model.lastChange = JGitUtils.getLastChange(r);
        model.projectPath = StringUtils.getFirstPathElement(repositoryName);