Skip to content

Commit 8fc21c8

Browse files
gerhardolRussKie
authored andcommitted
(split from main repo) Refactor ResetCmd: Use enum
Use enum for ResetMode including reset to index Add tests (cherry picked from commit c28165e3c39158e255297873da29ad99b0fd15f8)
1 parent 1f34a0f commit 8fc21c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FormGerritDownload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private async Task<bool> DownloadChangeAsync(IWin32Window owner)
119119

120120
var resetCommand = UICommands.CreateRemoteCommand();
121121

122-
resetCommand.CommandText = GitCommandHelpers.ResetHardCmd("FETCH_HEAD");
122+
resetCommand.CommandText = GitCommandHelpers.ResetCmd(ResetMode.Hard, "FETCH_HEAD");
123123

124124
if (!RunCommand(resetCommand, change))
125125
{

0 commit comments

Comments
 (0)