From 8285d2e1b001ab3b5ff3b253f367b3255c508b53 Mon Sep 17 00:00:00 2001 From: sandr01d <88739791+sandr01d@users.noreply.github.com> Date: Wed, 16 Jul 2025 20:37:06 +0200 Subject: [PATCH] Fix: early out with non-file arguments in checkout file (#456) --- bin/git-forgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-forgit b/bin/git-forgit index c9be829..82f4b52 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -841,7 +841,7 @@ _forgit_git_checkout_file() { _forgit_checkout_file() { _forgit_inside_work_tree || return 1 local files opts - _forgit_contains_non_flags "$@" && { _forgit_git_checkout_file -- "$@"; return $?; } + _forgit_contains_non_flags "$@" && { _forgit_git_checkout_file "$@"; return $?; } opts=" $FORGIT_FZF_DEFAULT_OPTS -m -0