GitSharp.FetchCommand.Execute C# (CSharp) Method

Execute() public method

public Execute ( ) : void
return void
        public override void Execute()
        {
            Transport tn = Transport.Open(Repository._internal_repo, Remote);

            if (Prune != null)
                tn.RemoveDeletedRefs = Prune.Value;
            if (Thin != null)
                tn.FetchThin = Thin.Value;
            tn.DryRun = DryRun;

            try
            {
                Result = tn.fetch(ProgressMonitor, RefSpecs);
                if (Result.TrackingRefUpdates.Count == 0)
                    return;
            }
            finally
            {
                tn.close();
            }
            showFetchResult(tn, Result);
        }