From aefb59ef98522ef8a10ab64b25840f11e622e1c7 Mon Sep 17 00:00:00 2001
From: Stardrad Yin <yin8086@gmail.com>
Date: Wed, 23 Jan 2013 03:16:08 -0500
Subject: [PATCH] Modify Chinese translation in properties file, and add new translation that synchronizes with commit synchronize with commit e4e6829

---
 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