mirror of
https://github.com/git/git.git
synced 2026-03-29 01:50:08 +01:00
Merge branch 'as/maint-completion-set-u-fix' into next
* as/maint-completion-set-u-fix: bash-completion: Fix __git_ps1 to work with "set -u" Conflicts: contrib/completion/git-completion.bash
This commit is contained in:
@@ -221,8 +221,8 @@ __git_ps1 ()
|
||||
{
|
||||
local g="$(__gitdir)"
|
||||
if [ -n "$g" ]; then
|
||||
local r
|
||||
local b
|
||||
local r=""
|
||||
local b=""
|
||||
if [ -f "$g/rebase-merge/interactive" ]; then
|
||||
r="|REBASE-i"
|
||||
b="$(cat "$g/rebase-merge/head-name")"
|
||||
@@ -264,11 +264,11 @@ __git_ps1 ()
|
||||
}
|
||||
fi
|
||||
|
||||
local w
|
||||
local i
|
||||
local s
|
||||
local u
|
||||
local c
|
||||
local w=""
|
||||
local i=""
|
||||
local s=""
|
||||
local u=""
|
||||
local c=""
|
||||
local p=""
|
||||
|
||||
if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then
|
||||
|
||||
Reference in New Issue
Block a user