-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change fetching refs to be forced and allow updating the head
- Loading branch information
1 parent
83ca8dd
commit 71c0d22
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using LibGit2Sharp; | ||
using LibGit2Sharp.Handlers; | ||
using Serilog; | ||
using SS14.MapServer.BuildRunners; | ||
using SS14.MapServer.Configuration; | ||
|
@@ -100,7 +101,7 @@ private void Pull(string repoDirectory, string gitRef) | |
repository.Config.Set("user.email", "[email protected]"); | ||
|
||
_log.Debug("Fetching ref"); | ||
_buildService.Run(repoDirectory, "git", new List<string> { "fetch origin", gitRef }).Wait(); | ||
_buildService.Run(repoDirectory, "git", new List<string> { "fetch -fu origin", gitRef }).Wait(); | ||
|
||
_log.Debug("Checking out {Ref}", StripRef(gitRef)); | ||
Commands.Checkout(repository, StripRef(gitRef)); | ||
|