Fix error in Gir prompt script
This commit is contained in:
parent
9dedd56226
commit
66f49658a1
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ git__prompt () {
|
||||||
if [ -z "$branch" ]
|
if [ -z "$branch" ]
|
||||||
then
|
then
|
||||||
head=$(git rev-parse --short HEAD 2>&1)
|
head=$(git rev-parse --short HEAD 2>&1)
|
||||||
if [ $(echo "$head" | grep '^fatal') ]
|
if [ "$(echo "$head" | grep '^fatal')" ]
|
||||||
then
|
then
|
||||||
branch='{no commits}'
|
branch='{no commits}'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue