From d1cb28385ea59475884afebd00179406c207efff Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 9 Dec 2013 17:15:05 -0500 Subject: [PATCH] Tweak info logging in GitblitReceivePack and open variable scope Change-Id: I11624daca0694dc1996795b31432274467f09228 --- .../java/com/gitblit/git/GitblitReceivePack.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/gitblit/git/GitblitReceivePack.java b/src/main/java/com/gitblit/git/GitblitReceivePack.java index c3734656..1678a702 100644 --- a/src/main/java/com/gitblit/git/GitblitReceivePack.java +++ b/src/main/java/com/gitblit/git/GitblitReceivePack.java @@ -87,9 +87,9 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P protected GroovyScriptEngine gse; - private final IStoredSettings settings; + protected final IStoredSettings settings; - private final IGitblit gitblit; + protected final IGitblit gitblit; public GitblitReceivePack( IGitblit gitblit, @@ -224,13 +224,13 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P } } - // reset branch commit cache on REWIND and DELETE for (ReceiveCommand cmd : commands) { String ref = cmd.getRefName(); if (ref.startsWith(Constants.R_HEADS)) { switch (cmd.getType()) { case UPDATE_NONFASTFORWARD: case DELETE: + // reset branch commit cache on REWIND and DELETE CommitCache.instance().clear(repository.name, ref); break; default: @@ -400,14 +400,14 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P } protected void sendHeader(String msg, Object... objects) { - sendMessage("--->", msg, objects); + sendInfo("--> ", msg, objects); } - protected void sendMessage(String msg, Object... objects) { - sendMessage(" ", msg, objects); + protected void sendInfo(String msg, Object... objects) { + sendInfo(" ", msg, objects); } - protected void sendMessage(String prefix, String msg, Object... objects) { + protected void sendInfo(String prefix, String msg, Object... objects) { String text; if (ArrayUtils.isEmpty(objects)) { text = msg; -- 2.39.5