cfg/bin/git-pot

25 lines
441 B
Plaintext
Raw Normal View History

#!/bin/bash -e
set -o pipefail
set -e
source "${HOME}/bin/script_framework.sh"
### Determine what to push
step "Getting current branch"
2016-07-21 13:48:49 +00:00
2016-11-12 18:18:49 +00:00
CURRENT_BRANCH=$(git branch --list | awk '/^\*/{print $2}')
step "Loading required key to push"
git loadkey
step "Execute pre-push auto-hook"
git autohook pre-push
step "Execute pushes..."
git push -u origin ${CURRENT_BRANCH} --tags "$@"
2016-07-21 13:48:49 +00:00
step "Execute post-push auto-hook"
git autohook post-push