Commits

Christian Specht committed cf2403d Merge

Merged in roadranger/bitbucket-backup (pull request #6)

Improve usability of bare git repositories; see #22

  • Participants
  • Parent commits fb85061, c811139

Comments (0)

Files changed (1)

src/BitbucketBackup/RepositoryFactory.cs

 
+using System;
+
 namespace BitbucketBackup
 {
     internal class RepositoryFactory : IRepositoryFactory
                 case "hg":
                     return new MercurialRepository(remoteUri, localFolder, this.config);
                 case "git":
-                    return new GitRepository(remoteUri, localFolder);
+                    return new GitRepository(remoteUri, String.Format("{0}.git", localFolder));
                 default:
                     return null;
             }