]> source.dussan.org Git - gitblit.git/commitdiff
Tweak info logging in GitblitReceivePack and open variable scope
authorJames Moger <james.moger@gitblit.com>
Mon, 9 Dec 2013 22:15:05 +0000 (17:15 -0500)
committerJames Moger <james.moger@gitblit.com>
Mon, 30 Dec 2013 21:53:58 +0000 (16:53 -0500)
Change-Id: I11624daca0694dc1996795b31432274467f09228

src/main/java/com/gitblit/git/GitblitReceivePack.java

index c3734656d6ae423df79d46def1e3b308c141abaa..1678a702138fdaf99ec9556544798749fee670dd 100644 (file)
@@ -87,9 +87,9 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P
 \r
        protected GroovyScriptEngine gse;\r
 \r
-       private final IStoredSettings settings;\r
+       protected final IStoredSettings settings;\r
 \r
-       private final IGitblit gitblit;\r
+       protected final IGitblit gitblit;\r
 \r
        public GitblitReceivePack(\r
                        IGitblit gitblit,\r
@@ -224,13 +224,13 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P
                        }\r
                }\r
 \r
-               // reset branch commit cache on REWIND and DELETE\r
                for (ReceiveCommand cmd : commands) {\r
                        String ref = cmd.getRefName();\r
                        if (ref.startsWith(Constants.R_HEADS)) {\r
                                switch (cmd.getType()) {\r
                                case UPDATE_NONFASTFORWARD:\r
                                case DELETE:\r
+                                       // reset branch commit cache on REWIND and DELETE\r
                                        CommitCache.instance().clear(repository.name, ref);\r
                                        break;\r
                                default:\r
@@ -400,14 +400,14 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P
        }\r
 \r
        protected void sendHeader(String msg, Object... objects) {\r
-               sendMessage("--->", msg, objects);\r
+               sendInfo("--> ", msg, objects);\r
        }\r
 \r
-       protected void sendMessage(String msg, Object... objects) {\r
-               sendMessage("    ", msg, objects);\r
+       protected void sendInfo(String msg, Object... objects) {\r
+               sendInfo("    ", msg, objects);\r
        }\r
 \r
-       protected void sendMessage(String prefix, String msg, Object... objects) {\r
+       protected void sendInfo(String prefix, String msg, Object... objects) {\r
                String text;\r
                if (ArrayUtils.isEmpty(objects)) {\r
                        text = msg;\r