diff options
author | Shawn Pearce <sop@google.com> | 2014-11-24 14:51:09 -0800 |
---|---|---|
committer | Shawn Pearce <sop@google.com> | 2014-11-24 14:56:13 -0800 |
commit | 485b751b2fb74b5ea11582787d859c6cd59b65d2 (patch) | |
tree | a18c463f059087f269c739436575539cb7c2ec78 /org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java | |
parent | 6c3999477ce3ab04e923935492534209e6ff8da4 (diff) | |
download | jgit-485b751b2fb74b5ea11582787d859c6cd59b65d2.tar.gz jgit-485b751b2fb74b5ea11582787d859c6cd59b65d2.zip |
Allow configurable ObjectCheckers in fetch
RecievePack already honors fsck settings for safeForWindows and
safeForMacOS. Allow those same checks to be performed during fetch
through a caller-configurable ObjectChecker.
Default the fetch fsck options to match the current platform, as
it can be reasonably assumed the repository will be accessed here.
Change-Id: I3c0f411fad209c6bd8fb9c4acf5c55a6799a6a2a
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java index 565b457acb..6b7183b759 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java @@ -193,7 +193,7 @@ class WalkFetchConnection extends BaseFetchConnection { WalkFetchConnection(final WalkTransport t, final WalkRemoteObjectDatabase w) { Transport wt = (Transport)t; local = wt.local; - objCheck = wt.isCheckFetchedObjects() ? new ObjectChecker() : null; + objCheck = wt.getObjectChecker(); inserter = local.newObjectInserter(); reader = local.newObjectReader(); |