Skip to content

Commit

Permalink
Simplify ResetGitTempRepoWorkingDir, plus clean
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk authored Feb 14, 2017
1 parent 32c9a2b commit 39d559e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Shared.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function RemoveGitTempRepo($RepoPath) {

function ResetGitTempRepoWorkingDir($RepoPath, $Branch = 'master') {
Set-Location $repoPath
git.exe reset HEAD --hard
git.exe checkout $Branch 2>$null
git.exe checkout -fq $Branch 2>$null
git.exe clean -xdfq 2>$null
}

# Force the posh-git prompt to be installed. Could be runnng on dev system where
Expand Down

0 comments on commit 39d559e

Please sign in to comment.