From 13417cf9c6eec555b51da49742e47939d2f5715b Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 19 Oct 2012 22:47:33 -0400 Subject: [PATCH] Exclude submodules from zip downloads (issue 151) --- src/com/gitblit/models/RefModel.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/models/RefModel.java b/src/com/gitblit/models/RefModel.java index acac776..8489c81 100644 --- a/src/com/gitblit/models/RefModel.java +++ b/src/com/gitblit/models/RefModel.java @@ -24,7 +24,6 @@ import org.eclipse.jgit.revwalk.RevCommit; import org.eclipse.jgit.revwalk.RevObject; import org.eclipse.jgit.revwalk.RevTag; -import org.eclipse.jgit.revwalk.RevTree; /** * RefModel is a serializable model class that represents a tag or branch and @@ -62,6 +61,9 @@ } public String getName() { + if (reference == null) { + return displayName; + } return reference.getName(); } -- Gitblit v1.9.1