Instead of commithooks call push to github manually.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-01-05 18:25:46 +02:00
parent a842e2c2d1
commit 1108fab674
3 changed files with 4 additions and 36 deletions

View File

@ -1,23 +0,0 @@
#!/bin/sh
# Commit hook. Helps update bookmark.
# Put this file in your path.
#
# Edit file .hg/hgrc
#
# [hooks]
# commit = commithook
DEVELOP_BRANCH="develop"
RELEASE_BRANCH="release"
CURRENT_BRANCH=$(hg branch)
if [ $CURRENT_BRANCH = $DEVELOP_BRANCH ];
then
hg bookmark -f master;
fi
if [ $CURRENT_BRANCH = $RELEASE_BRANCH ];
then
hg bookmark -f release;
fi

View File

@ -1,13 +0,0 @@
#!/bin/sh
# Commit hook. Helps update bookmark.
# Put this file in your path.
#
# Edit file .hg/hgrc
#
# [hooks]
# outgoing = outgoinghook
sh -c "hg push -f git+ssh://git@github.com/dismine/Valentina.git" &
exit 0;

4
scripts/pushtogit.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
hg bookmark -f master;
hg push -f github