change default remote name to dynamic
This commit is contained in:
parent
39b4a829be
commit
21c57cbfb1
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
#MSC_LOGDIR="./logs"
|
||||
#MSC_LOGFILE="${MSC_LOGDIR}/git.log"
|
||||
[ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue