fix svn branch name prompt: when not trunk, display NOT trunk

This commit is contained in:
shiludeng 2015-04-13 18:15:32 +08:00
commit c78069d2e2

View file

@ -46,8 +46,10 @@ function svn_get_branch_name() {
if [ "x$_DISPLAY" = "x" ]; then
svn_get_repo_name
elif [ "x$_DISPLAY" = "xtrunk" ]; then
echo "trunk"
else
echo $_DISPLAY
echo "NOT trunk"
fi
unset _DISPLAY
}