Skip to content

Commit

Permalink
Exclude submodules from zip downloads (issue 151)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitblit committed Oct 20, 2012
1 parent b0e1642 commit 13417cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/04_releases.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ If you are updating from an earlier release AND you have indexed branches with t

#### fixes

- Exclude submodules from zip downloads (issue 151)
- Fixed bug where repository ownership was not updated on rename user
- Fixed bug in create/rename repository if you explicitly specified the alias for the root group (e.g. main/myrepo) (issue 143)
- Wrapped Markdown parser with improved exception handler (issue 142)
Expand Down
3 changes: 3 additions & 0 deletions src/com/gitblit/utils/JGitUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,9 @@ public static boolean zip(Repository repository, String basePath, String objectI
}
tw.setRecursive(true);
while (tw.next()) {
if (tw.getFileMode(0) == FileMode.GITLINK) {
continue;
}
ZipEntry entry = new ZipEntry(tw.getPathString());
entry.setSize(tw.getObjectReader().getObjectSize(tw.getObjectId(0),
Constants.OBJ_BLOB));
Expand Down

0 comments on commit 13417cf

Please sign in to comment.