James Moger
2011-12-27 c1a4cc7028954084019a7863085fa5d01aeafa9a
fixed renaming a repository into a new subfolder failed (issue-33)
2 files modified
6 ■■■■■ changed files
docs/04_releases.mkd 1 ●●●● patch | view | raw | blame | history
src/com/gitblit/GitBlit.java 5 ●●●●● patch | view | raw | blame | history
docs/04_releases.mkd
@@ -29,6 +29,7 @@
- added: filters menu to repositories page and activity page.  You can filter by federation set, team, and simple custom regular expressions (issue 27)  
   **New:** *web.customFilters=*
- fixed: several a bugs in FileUserService related to cleaning up old repository permissions on a rename or delete
- fixed: renaming a repository into a new subfolder failed (issue 33)
- added: optional flash-based 1-step *copy to clipboard* of the primary repository url
- added: javascript-based 3-step (click, ctrl+c, enter) *copy to clipboard* of the primary repository url  
   **New:** *web.allowFlashCopyToClipboard = true*
src/com/gitblit/GitBlit.java
@@ -905,6 +905,11 @@
                                    .format("Can not rename repository ''{0}'' to ''{1}'' because ''{1}'' already exists.",
                                            repositoryName, repository.name));
                }
                File parentFile = destFolder.getParentFile();
                if (!parentFile.exists() && !parentFile.mkdirs()) {
                    throw new GitBlitException(MessageFormat.format(
                            "Failed to create folder ''{0}''", parentFile.getAbsolutePath()));
                }
                if (!folder.renameTo(destFolder)) {
                    throw new GitBlitException(MessageFormat.format(
                            "Failed to rename repository ''{0}'' to ''{1}''.", repositoryName,