]> source.dussan.org Git - gitblit.git/commitdiff
Fix reflog parsing bug of null compare links on branch creation
authorJames Moger <james.moger@gitblit.com>
Tue, 4 Mar 2014 03:23:13 +0000 (22:23 -0500)
committerJames Moger <james.moger@gitblit.com>
Tue, 4 Mar 2014 03:23:13 +0000 (22:23 -0500)
src/main/java/com/gitblit/utils/RefLogUtils.java

index 4c082d0541678137bee15c03dcb52ae19adafcad..a87579ff79475f25c6947b81e88df681afbc2bf4 100644 (file)
@@ -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(" ");