|
|
|
@ -269,20 +269,26 @@ public class ReceivePack extends BaseReceivePack {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
if (unpackError == null) { |
|
|
|
|
boolean atomic = isCapabilityEnabled(CAPABILITY_ATOMIC); |
|
|
|
|
setAtomic(atomic); |
|
|
|
|
|
|
|
|
|
validateCommands(); |
|
|
|
|
if (atomic && anyRejects()) |
|
|
|
|
if (atomic && anyRejects()) { |
|
|
|
|
failPendingCommands(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
preReceive.onPreReceive(this, filterCommands(Result.NOT_ATTEMPTED)); |
|
|
|
|
if (atomic && anyRejects()) |
|
|
|
|
preReceive.onPreReceive( |
|
|
|
|
this, filterCommands(Result.NOT_ATTEMPTED)); |
|
|
|
|
if (atomic && anyRejects()) { |
|
|
|
|
failPendingCommands(); |
|
|
|
|
} |
|
|
|
|
executeCommands(); |
|
|
|
|
} |
|
|
|
|
} finally { |
|
|
|
|
unlockPack(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (reportStatus) { |
|
|
|
|
if (echoCommandFailures && msgOut != null) { |
|
|
|
|