Merge branch 'maint-1.6.1' into maint-1.6.2
[gitweb.git] / contrib / completion / git-completion.bash
index 0a3092f646872867b0060d79c0fd1c85a40e24f4..8431837f9705d9a940819db4fcd51283f433ba1a 100755 (executable)
@@ -1005,7 +1005,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
@@ -1843,7 +1843,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