~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit/NGit.Transport/TransportLocal.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                        public override NGit.Transport.Transport Open(URIish uri, Repository local, string
120
120
                                 remoteName)
121
121
                        {
 
122
                                FilePath localPath = local.IsBare ? local.Directory : local.WorkTree;
 
123
                                FilePath path = local.FileSystem.Resolve(localPath, uri.GetPath());
122
124
                                // If the reference is to a local file, C Git behavior says
123
125
                                // assume this is a bundle, since repositories are directories.
124
 
                                //
125
 
                                FilePath path = local.FileSystem.Resolve(new FilePath("."), uri.GetPath());
126
126
                                if (path.IsFile())
127
127
                                {
128
128
                                        return new TransportBundleFile(local, uri, path);