Skip to content

Commit c267a4d

Browse files
committed
Merge branch 'js/completion-ctags-pattern-substitution-fix'
The code that reads from the ctags file in the completion script (in contrib/) did not spell ${param/pattern/string} substitution correctly, which happened to work with bash but not with zsh. * js/completion-ctags-pattern-substitution-fix: contrib/completion: escape the forward slash in __git_match_ctag
2 parents 61ca378 + db8d750 commit c267a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ _git_gitk ()
13021302
}
13031303

13041304
__git_match_ctag() {
1305-
awk "/^${1////\\/}/ { print \$1 }" "$2"
1305+
awk "/^${1//\//\\/}/ { print \$1 }" "$2"
13061306
}
13071307

13081308
_git_grep ()

0 commit comments

Comments
 (0)