Skip to content

Commit

Permalink
Fix bash completion in path with spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Cheng (aka SDiZ) <[email protected]>
Trivially-acked-by: Shawn O. Pearce <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
j16sdiz authored and gitster committed Mar 30, 2009
1 parent 67f1fe5 commit ba7906f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ _git_log ()
local cur="${COMP_WORDS[COMP_CWORD]}"
local g="$(git rev-parse --git-dir 2>/dev/null)"
local merge=""
if [ -f $g/MERGE_HEAD ]; then
if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge"
fi
case "$cur" in
Expand Down Expand Up @@ -1681,7 +1681,7 @@ _gitk ()
local cur="${COMP_WORDS[COMP_CWORD]}"
local g="$(git rev-parse --git-dir 2>/dev/null)"
local merge=""
if [ -f $g/MERGE_HEAD ]; then
if [ -f "$g/MERGE_HEAD" ]; then
merge="--merge"
fi
case "$cur" in
Expand Down

0 comments on commit ba7906f

Please sign in to comment.