@@ -87,9 +87,9 @@ public class GitblitReceivePack extends ReceivePack implements PreReceiveHook, P
87
87
88
88
protected GroovyScriptEngine gse ;
89
89
90
- private final IStoredSettings settings ;
90
+ protected final IStoredSettings settings ;
91
91
92
- private final IGitblit gitblit ;
92
+ protected final IGitblit gitblit ;
93
93
94
94
public GitblitReceivePack (
95
95
IGitblit gitblit ,
@@ -224,13 +224,13 @@ public void onPreReceive(ReceivePack rp, Collection<ReceiveCommand> commands) {
224
224
}
225
225
}
226
226
227
- // reset branch commit cache on REWIND and DELETE
228
227
for (ReceiveCommand cmd : commands ) {
229
228
String ref = cmd .getRefName ();
230
229
if (ref .startsWith (Constants .R_HEADS )) {
231
230
switch (cmd .getType ()) {
232
231
case UPDATE_NONFASTFORWARD :
233
232
case DELETE :
233
+ // reset branch commit cache on REWIND and DELETE
234
234
CommitCache .instance ().clear (repository .name , ref );
235
235
break ;
236
236
default :
@@ -400,14 +400,14 @@ protected void sendRejection(final ReceiveCommand cmd, final String why, Object.
400
400
}
401
401
402
402
protected void sendHeader (String msg , Object ... objects ) {
403
- sendMessage ("---> " , msg , objects );
403
+ sendInfo ("--> " , msg , objects );
404
404
}
405
405
406
- protected void sendMessage (String msg , Object ... objects ) {
407
- sendMessage (" " , msg , objects );
406
+ protected void sendInfo (String msg , Object ... objects ) {
407
+ sendInfo (" " , msg , objects );
408
408
}
409
409
410
- protected void sendMessage (String prefix , String msg , Object ... objects ) {
410
+ protected void sendInfo (String prefix , String msg , Object ... objects ) {
411
411
String text ;
412
412
if (ArrayUtils .isEmpty (objects )) {
413
413
text = msg ;
0 commit comments