Skip to content

Commit b63e32c

Browse files
committed
(split from main repo) Refactor ResetCmd: Use enum
Use enum for ResetMode including reset to index Add tests
1 parent 1f34a0f commit b63e32c

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)