zeus
4 years ago
3 changed files with 25 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
./stop.sh |
||||
|
./start.sh |
@ -0,0 +1,20 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
git fetch |
||||
|
|
||||
|
UPSTREAM=${1:-'@{u}'} |
||||
|
LOCAL=$(git rev-parse @) |
||||
|
REMOTE=$(git rev-parse "$UPSTREAM") |
||||
|
BASE=$(git merge-base @ "$UPSTREAM") |
||||
|
|
||||
|
if [ $LOCAL = $REMOTE ]; then |
||||
|
echo "Up-to-date" |
||||
|
elif [ $LOCAL = $BASE ]; then |
||||
|
echo "Update swarmlab hybrid ..." |
||||
|
git pull origin |
||||
|
elif [ $REMOTE = $BASE ]; then |
||||
|
echo "Need to push" |
||||
|
else |
||||
|
echo "Diverged" |
||||
|
fi |
||||
|
|
Loading…
Reference in new issue