diff --git a/scripts/commithook b/scripts/commithook deleted file mode 100755 index 09a2073a4..000000000 --- a/scripts/commithook +++ /dev/null @@ -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 diff --git a/scripts/outgoinghook b/scripts/outgoinghook deleted file mode 100755 index 9905b1bcf..000000000 --- a/scripts/outgoinghook +++ /dev/null @@ -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; diff --git a/scripts/pushtogit.sh b/scripts/pushtogit.sh new file mode 100755 index 000000000..01da2c077 --- /dev/null +++ b/scripts/pushtogit.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +hg bookmark -f master; +hg push -f github