From 85ccdd3f809d9e9892403a631f980406d4a278c6 Mon Sep 17 00:00:00 2001 From: "zhangwenxuan.917" Date: Thu, 28 Jul 2022 16:29:49 +0800 Subject: [PATCH] fix: make linter happy --- forgit.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 9e0e301..43a0392 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -201,7 +201,7 @@ forgit::rebase() { " target_commit=$(eval "$cmd" | FZF_DEFAULT_OPTS="$opts" fzf | eval "$forgit_extract_sha") if [[ -n "$target_commit" ]]; then - prev_commit=$(forgit::previous_commit $target_commit) + prev_commit=$(forgit::previous_commit "$target_commit") git rebase -i "$prev_commit" fi @@ -225,7 +225,7 @@ forgit::fixup() { " target_commit=$(eval "$cmd" | FZF_DEFAULT_OPTS="$opts" fzf | eval "$forgit_extract_sha") if [[ -n "$target_commit" ]] && git commit --fixup "$target_commit"; then - prev_commit=$(forgit::previous_commit $target_commit) + prev_commit=$(forgit::previous_commit "$target_commit") # rebase will fail if there are unstaged changes so --autostash is needed to temporarily stash them # GIT_SEQUENCE_EDITOR=: is needed to skip the editor GIT_SEQUENCE_EDITOR=: git rebase --autostash -i --autosquash "$prev_commit"