Instead of commithooks call push to github manually.
--HG-- branch : develop
This commit is contained in:
parent
a842e2c2d1
commit
1108fab674
|
@ -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
|
|
@ -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
4
scripts/pushtogit.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
hg bookmark -f master;
|
||||
hg push -f github
|
Loading…
Reference in New Issue
Block a user