From: Shawn Pearce Date: Wed, 12 Mar 2014 23:44:59 +0000 (-0700) Subject: Default receive.fsckObjects to transfer.fsckObjects X-Git-Tag: v3.4.0.201405051725-m7~51^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F23288%2F2;p=jgit.git Default receive.fsckObjects to transfer.fsckObjects ReceivePack should configure itself with receive.fsckObjects, and if not defined, transfer.fsckObjects. This is the order used by git-core. Change-Id: I41f243633dacb606dbcc3132972f63bbaba174d1 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java index 483ac55fa9..0c83ece29c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java @@ -284,8 +284,9 @@ public abstract class BaseReceivePack { final boolean allowOfsDelta; ReceiveConfig(final Config config) { - checkReceivedObjects = config.getBoolean("receive", "fsckobjects", //$NON-NLS-1$ //$NON-NLS-2$ - false); + checkReceivedObjects = config.getBoolean( + "receive", "fsckobjects", //$NON-NLS-1$ //$NON-NLS-2$ + config.getBoolean("transfer", "fsckobjects", false)); //$NON-NLS-1$ //$NON-NLS-2$ allowCreates = true; allowDeletes = !config.getBoolean("receive", "denydeletes", false); //$NON-NLS-1$ //$NON-NLS-2$ allowNonFastForwards = !config.getBoolean("receive", //$NON-NLS-1$