From 68afe82333c8ffaceeb85e410a0eb7bd7e55e804 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 3 Mar 2014 22:23:13 -0500 Subject: [PATCH] Fix reflog parsing bug of null compare links on branch creation --- src/main/java/com/gitblit/utils/RefLogUtils.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/gitblit/utils/RefLogUtils.java b/src/main/java/com/gitblit/utils/RefLogUtils.java index 4c082d05..a87579ff 100644 --- a/src/main/java/com/gitblit/utils/RefLogUtils.java +++ b/src/main/java/com/gitblit/utils/RefLogUtils.java @@ -478,8 +478,6 @@ public class RefLogUtils { case DELETE: log.updateRef(change.path, ReceiveCommand.Type.DELETE); break; - case ADD: - log.updateRef(change.path, ReceiveCommand.Type.CREATE); default: String content = JGitUtils.getStringContent(repository, push.getTree(), change.path); String [] fields = content.split(" "); -- 2.39.5