From 19bd42366cc0481968dd7200708a721c276e0436 Mon Sep 17 00:00:00 2001 From: sandroid Date: Tue, 15 Jul 2025 21:02:28 +0200 Subject: [PATCH] Fix: early out with non-file arguments in checkout file --- 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