toujours afficher la branche
This commit is contained in:
parent
1ea083adf4
commit
cae95416a2
|
@ -40,10 +40,8 @@ if [ -n "$UTOOLS" ]; then
|
||||||
else
|
else
|
||||||
flag="git"
|
flag="git"
|
||||||
fi
|
fi
|
||||||
if [ "$UTOOLS" == "f" ]; then
|
|
||||||
branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)"
|
branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)"
|
||||||
[ "$branch" != "master" ] && flag="$flag:$branch"
|
[ "$branch" != "master" ] && flag="$flag:$branch"
|
||||||
fi
|
|
||||||
if [ -n "$NOPUSH" ]; then
|
if [ -n "$NOPUSH" ]; then
|
||||||
flag="$flag,nopush"
|
flag="$flag,nopush"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue