James Moger
2012-08-22 d5477c14eb6b6050b98f890b487ed19734c2e686
Fixed generated urls in RSS feeds for grouped repositories
2 files modified
4 ■■■ changed files
docs/04_releases.mkd 1 ●●●● patch | view | raw | blame | history
src/com/gitblit/SyndicationServlet.java 3 ●●●● patch | view | raw | blame | history
docs/04_releases.mkd
@@ -12,6 +12,7 @@
#### fixes
- Fixed generated urls in Groovy *sendmail* hook script for grouped repositories
- Fixed generated urls in RSS feeds for grouped repositories
- Eliminated an unnecessary reopsitory enumeration call on the root page which should result in faster page loads (issue 103) 
- Gitblit could not delete a Lucene index in a working copy on index upgrade 
- Do not index submodule links (issue 119)
src/com/gitblit/SyndicationServlet.java
@@ -181,13 +181,14 @@
            urlPattern = "{0}/commit/?r={1}&h={2}";
        }
        String gitblitUrl = HttpUtils.getGitblitURL(request);
        char fsc = GitBlit.getChar(Keys.web.forwardSlashCharacter, '/');
        // convert RevCommit to SyndicatedEntryModel
        for (RevCommit commit : commits) {
            FeedEntryModel entry = new FeedEntryModel();
            entry.title = commit.getShortMessage();
            entry.author = commit.getAuthorIdent().getName();
            entry.link = MessageFormat.format(urlPattern, gitblitUrl,
                    StringUtils.encodeURL(model.name), commit.getName());
                    StringUtils.encodeURL(model.name.replace('/', fsc)), commit.getName());
            entry.published = commit.getCommitterIdent().getWhen();
            entry.contentType = "text/html";
            String message = GitBlit.self().processCommitMessage(model.name,