change default remote name to dynamic

This commit is contained in:
Jakobus Schürz 2022-10-25 07:06:32 +02:00
parent 39b4a829be
commit 21c57cbfb1

View file

@ -17,7 +17,7 @@
#MSC_LOGDIR="./logs" #MSC_LOGDIR="./logs"
#MSC_LOGFILE="${MSC_LOGDIR}/git.log" #MSC_LOGFILE="${MSC_LOGDIR}/git.log"
[ -d "${MSC_LOGDIR}" ] || mkdir -p "${MSC_LOGDIR}" [ -d "${MSC_LOGDIR}" ] || mkdir -p "${MSC_LOGDIR}"
[ -z "${MSC_GIT_REMOTE_NAME+x}" ] && export MSC_GIT_REMOTE_NAME=origin [ -z "${MSC_GIT_REMOTE_NAME+x}" ] && export MSC_GIT_REMOTE_NAME=$($MSC_GIT rev-parse --abbrev-ref @{u} 2>/dev/null | cut -d'/' -f1)
[ -z "${MSC_GIT_BRANCH:+x}" ] && export MSC_GIT_BRANCH=master [ -z "${MSC_GIT_BRANCH:+x}" ] && export MSC_GIT_BRANCH=master