|
|
@@ -93,13 +93,18 @@ class Fetch extends AbstractFetchCommand { |
|
|
|
protected void run() throws Exception { |
|
|
|
Git git = new Git(db); |
|
|
|
FetchCommand fetch = git.fetch(); |
|
|
|
fetch.setCheckFetchedObjects(fsck.booleanValue()); |
|
|
|
fetch.setRemoveDeletedRefs(prune.booleanValue()); |
|
|
|
fetch.setRefSpecs(toget); |
|
|
|
fetch.setTimeout(timeout); |
|
|
|
if (fsck != null) |
|
|
|
fetch.setCheckFetchedObjects(fsck.booleanValue()); |
|
|
|
if (prune != null) |
|
|
|
fetch.setRemoveDeletedRefs(prune.booleanValue()); |
|
|
|
if (toget != null) |
|
|
|
fetch.setRefSpecs(toget); |
|
|
|
if (0 <= timeout) |
|
|
|
fetch.setTimeout(timeout); |
|
|
|
fetch.setDryRun(dryRun); |
|
|
|
fetch.setRemote(remote); |
|
|
|
fetch.setThin(thin.booleanValue()); |
|
|
|
if (thin != null) |
|
|
|
fetch.setThin(thin.booleanValue()); |
|
|
|
fetch.setProgressMonitor(new TextProgressMonitor()); |
|
|
|
|
|
|
|
FetchResult result = fetch.call(); |