make set-url configurable via environment
This commit is contained in:
parent
181f184228
commit
1017005260
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ if [[ $- = *i* ]] ; then
|
||||||
$SGIT config user.name "${FULLNAME}"
|
$SGIT config user.name "${FULLNAME}"
|
||||||
|
|
||||||
# set upstream only if not detached
|
# set upstream only if not detached
|
||||||
[ $($SGIT rev-parse --abbrev-ref HEAD) != "HEAD" ] && $SGIT branch --set-upstream-to=origin/$($SGIT rev-parse --abbrev-ref HEAD)
|
[ $($SGIT rev-parse --abbrev-ref HEAD) != "HEAD" ] && $SGIT branch --set-upstream-to=${MYSHELLCONFIG_GIT_REMOTE_NAME}/$($SGIT rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
# sync repo with origin if git is reachable
|
# sync repo with origin if git is reachable
|
||||||
if ckrepo ; then
|
if ckrepo ; then
|
||||||
|
@ -213,7 +213,7 @@ if [[ $- = *i* ]] ; then
|
||||||
#echo "Run Vim, and in Vim run :PluginInstall to install all Plugins"
|
#echo "Run Vim, and in Vim run :PluginInstall to install all Plugins"
|
||||||
vim -c "PluginInstall" -c ":qa!"
|
vim -c "PluginInstall" -c ":qa!"
|
||||||
fi
|
fi
|
||||||
[ -z ${MYSHELLCONFIG_GIT_REMOTE_PUSH+x} ] || $SGIT remote set-url --push origin "${MYSHELLCONFIG_GIT_REMOTE_PUSH}"
|
[ -z ${MYSHELLCONFIG_GIT_REMOTE_PUSH+x} ] || $SGIT remote set-url --push ${MYSHELLCONFIG_GIT_REMOTE_NAME} "${MYSHELLCONFIG_GIT_REMOTE_PUSH}"
|
||||||
# cd ${HOME}
|
# cd ${HOME}
|
||||||
;;
|
;;
|
||||||
*screen*)
|
*screen*)
|
||||||
|
|
Loading…
Reference in a new issue