mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-14 07:29:12 +08:00
remove additional spaces
This commit is contained in:
parent
7f682653e4
commit
9aa26c46d0
8
vendor/git-prompt.sh
vendored
8
vendor/git-prompt.sh
vendored
@ -12,15 +12,15 @@ function getGitStatusSetting() {
|
|||||||
function getSimpleGitBranch() {
|
function getSimpleGitBranch() {
|
||||||
gitDir=$(git rev-parse --git-dir 2>/dev/null)
|
gitDir=$(git rev-parse --git-dir 2>/dev/null)
|
||||||
if [ -z "$gitDir" ]; then
|
if [ -z "$gitDir" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
headContent=$(< "$gitDir/HEAD")
|
headContent=$(< "$gitDir/HEAD")
|
||||||
if [[ "$headContent" == "ref: refs/heads/"* ]]
|
if [[ "$headContent" == "ref: refs/heads/"* ]]
|
||||||
then
|
then
|
||||||
echo " (${headContent:16})"
|
echo " (${headContent:16})"
|
||||||
else
|
else
|
||||||
echo " (HEAD detached at ${headContent:0:7})"
|
echo " (HEAD detached at ${headContent:0:7})"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user