GitSharp.CloneCommand.runFetch C# (CSharp) Method

runFetch() private method

private runFetch ( ) : FetchResult
return FetchResult
        private FetchResult runFetch()
        {
            Transport tn = Transport.Open(Repository._internal_repo, OriginName);
            FetchResult r;

            try
            {
                if (!Quiet)
                    r = tn.fetch(new TextProgressMonitor(OutputStream), null);
                else
                    r = tn.fetch(new NullProgressMonitor(),null);
            }
            finally
            {
                tn.close();
            }

            showFetchResult(tn, r);
            return r;
        }