Compare commits
8 commits
ef7b6059ca
...
1e4f8a5603
Author | SHA1 | Date | |
---|---|---|---|
|
1e4f8a5603 | ||
|
e5c3674bbb | ||
|
cd84947a94 | ||
|
354ed21889 | ||
|
e733d4cce0 | ||
|
60dd36b807 | ||
|
28aabb649e | ||
|
d4516a55a6 |
3 changed files with 11 additions and 3 deletions
|
@ -1351,7 +1351,13 @@ setgitremote() {
|
|||
|
||||
|
||||
git remote set-url ${MSC_GIT_REMOTE_NAME:-$MSC_GIT_REMOTE_NAME_DEFAULT} ${MSC_GIT_PULLURL:-$MSC_GIT_PULLURL_DEFAULT}
|
||||
git remote set-url --push ${MSC_GIT_REMOTE_NAME:-$MSC_GIT_REMOTE_NAME_DEFAULT} ${MSC_GIT_PUSHURL:-$MSC_GIT_PUSHURL_DEFAULT}
|
||||
# sequence for push-url
|
||||
# configured pushurl from .bashrc
|
||||
# configured pullurl from .bashrc (if no pushrul is defined and pushurl is the same as pullurl)
|
||||
# default pushurl (if no push or pullurl is defined in .bashrc)
|
||||
# default pullurl (if no push/pull/default_pushurl is defined, then default pushurl is the same as default pullurl)
|
||||
git remote set-url --push ${MSC_GIT_REMOTE_NAME:-$MSC_GIT_REMOTE_NAME_DEFAULT} \
|
||||
${MSC_GIT_PUSHURL:-${MSC_GIT_PULLURL:-${MSC_GIT_PUSHURL_DEFAULT:-$MSC_GIT_PULLURL_DEFAULT}}}
|
||||
git branch -u "${MSC_GIT_REMOTE_NAME:-$MSC_GIT_REMOTE_NAME_DEFAULT}"/"${MSC_GIT_BRANCH:-$MSC_GIT_BRANCH_DEFAULT}"
|
||||
git checkout ${MSC_GIT_BRANCH:-$MSC_GIT_BRANCH_DEFAULT}
|
||||
loginfo "now remotes are: $(git remote -v)"
|
||||
|
|
|
@ -91,8 +91,9 @@ if ! $SSHS; then
|
|||
if test ! $TMUX && test $TERM != screen; then
|
||||
loginfo "no screen"
|
||||
# if test $(systemctl status tmux@${USER}.service 1>/dev/null 2>&1; echo $? ) -eq 0; then
|
||||
if tmux has-session -t User || tmux has-session -t "${USER}"; then
|
||||
if tmux has-session -t User > /dev/null || tmux has-session -t "${USER}"; then
|
||||
loginfo "tmux@${USER} is running"
|
||||
loginfo "$(tmux list-sessions)"
|
||||
STARTTMUXDEFAULT=${STARTTMUXREMOTEDEFAULT}
|
||||
fi
|
||||
fi
|
||||
|
|
3
sshs
3
sshs
|
@ -22,7 +22,8 @@ sshs() {
|
|||
done
|
||||
fi
|
||||
logdebug "FILELIST1: ${FILELIST[@]}"
|
||||
local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/master-%C"
|
||||
local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s"
|
||||
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/master-%C"
|
||||
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=yes -o ControlPersist=10s -o ControlPath=~/.ssh/ssh-%C"
|
||||
# Read /etc/bashrc or /etc/bash.bashrc (depending on distribution) and /etc/profile.d/*.sh first
|
||||
#ssh -T ${SSH_OPTS} $@ "pwd" >/dev/null 2>/dev/null || { logerror "Server $@ not reachable -> exit"; return 1; }
|
||||
|
|
Loading…
Reference in a new issue