GitSharp.Core.Transport.WalkFetchConnection.DownloadLooseObject C# (CSharp) Method

DownloadLooseObject() private method

private DownloadLooseObject ( AnyObjectId id, string looseName, WalkRemoteObjectDatabase remote ) : bool
id AnyObjectId
looseName string
remote WalkRemoteObjectDatabase
return bool
        private bool DownloadLooseObject(AnyObjectId id, string looseName, WalkRemoteObjectDatabase remote)
        {
            try
            {
                byte[] compressed = remote.open(looseName).toArray();
                VerifyLooseObject(id, compressed);
                SaveLooseObject(id, compressed);
                return true;
            }
            catch (FileNotFoundException e)
            {
                RecordError(id, e);
                return false;
            }
            catch (IOException e)
            {
                throw new TransportException("Cannot download " + id.Name, e);
            }
        }