Skip to content

Commit f74aa93

Browse files
Fix grc / forgit revert_commit (#305)
This was accidentally broken since 450615d due to a wrong git call.
1 parent e8ad636 commit f74aa93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-forgit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ _forgit_branch_delete() {
534534
_forgit_revert_commit() {
535535
_forgit_inside_work_tree || return 1
536536
local git_revert cmd opts files preview commits IFS
537-
git_revert="git branch $FORGIT_REVERT_COMMIT_GIT_OPTS"
537+
git_revert="git revert $FORGIT_REVERT_COMMIT_GIT_OPTS"
538538
[[ $# -ne 0 ]] && { $git_revert "$@"; return $?; }
539539

540540
cmd="git log --graph --color=always --format='$_forgit_log_format' $* $_forgit_emojify"

0 commit comments

Comments
 (0)