Skip to content

Commit

Permalink
Fixed issue with revert file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Jul 31, 2011
1 parent f5e7e3a commit f33bd88
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Kudu.Core/SourceControl/Git/GitExeRepository.cs
Original file line number Diff line number Diff line change
@@ -58,7 +58,12 @@ public void RevertFile(string path) {
_gitExe.Execute("rm --cached \"{0}\"", path);
}
else {
_gitExe.Execute("reset HEAD \"{0}\"", path);
try {
_gitExe.Execute("reset HEAD \"{0}\"", path);
}
catch {
// This command returns a non zero exit code even when it succeeds
}
}

// Now get the status of the file

0 comments on commit f33bd88

Please sign in to comment.