Pulling before pre-push testing instead of just before pushing in ./tools/push.sh.
This commit is contained in:
+11
-9
@@ -31,6 +31,17 @@ then
|
|||||||
echo -e "\n\n $GIT_STATUS_CONSIDER_CLEAN_MSG.\e[0m\n"
|
echo -e "\n\n $GIT_STATUS_CONSIDER_CLEAN_MSG.\e[0m\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Pulling..."
|
||||||
|
|
||||||
|
make pull
|
||||||
|
status_code=$?
|
||||||
|
|
||||||
|
if [ $status_code -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "Pull failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
ok_to_push=1
|
ok_to_push=1
|
||||||
|
|
||||||
current_branch=`git branch | grep "^* " | cut -d ' ' -f 2`
|
current_branch=`git branch | grep "^* " | cut -d ' ' -f 2`
|
||||||
@@ -133,15 +144,6 @@ if [ $ok_to_push -eq 1 ]
|
|||||||
then
|
then
|
||||||
if [ "`git status --porcelain 2>&1 | wc -l`" == "0" ]
|
if [ "`git status --porcelain 2>&1 | wc -l`" == "0" ]
|
||||||
then
|
then
|
||||||
echo "Pulling..."
|
|
||||||
make pull
|
|
||||||
status_code=$?
|
|
||||||
if [ $status_code -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "Pull failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Pushing..."
|
echo "Pushing..."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user