]> git.ipfire.org Git - thirdparty/git.git/commit - t/t9902-completion.sh
completion: fix __git_complete_worktree_paths
authorRubén Justo <rjusto@gmail.com>
Tue, 27 Feb 2024 21:06:49 +0000 (22:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Feb 2024 21:37:24 +0000 (13:37 -0800)
commit3574816d98a332187fc331826cdf170b0adf3a47
treed79245d545ead42c0fd720e22927e8d908563856
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
completion: fix __git_complete_worktree_paths

Use __git to invoke "worktree list" in __git_complete_worktree_paths, to
respect any "-C" and "--git-dir" options present on the command line.

Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
t/t9902-completion.sh