Skip to content

Commit 3a21f77

Browse files
committed
Allow undoing non-local commits
1 parent dffb46d commit 3a21f77

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/ui/history/commit-list.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,7 @@ export class CommitList extends React.Component<
755755
): IMenuItem[] {
756756
const isLocal = this.isLocalCommit(commit.sha)
757757

758-
const canBeUndone =
759-
this.props.canUndoCommits === true && isLocal && row === 0
758+
const canBeUndone = this.props.canUndoCommits === true && row === 0
760759
const canBeAmended = this.props.canAmendCommits === true && row === 0
761760
// The user can reset to any commit up to the first non-local one (included).
762761
// They cannot reset to the most recent commit... because they're already

0 commit comments

Comments
 (0)