Commits

Anonymous committed 8b865e2

Dealing with issue #23: http://stackoverflow.com/questions/22992428/bitbucketbackup-overcome-git-fetch-non-fast-forward-error. It adds the --force and --prune options to make the backup more error resilient.

  • Participants
  • Parent commits 1befd0e

Comments (0)

Files changed (1)

src/BitbucketBackup/GitRepository.cs

 
         public override void Pull()
         {
-            this.git.Execute(String.Format("fetch {0} refs/heads/*:refs/heads/* refs/tags/*:refs/tags/*", this.remoteuri));
+            this.git.Execute(String.Format("fetch --force --prune {0} refs/heads/*:refs/heads/* refs/tags/*:refs/tags/*", this.remoteuri));
         }
     }
 }