#!/bin/sh # # Runs before git flow hotfix finish # # Positional arguments: # $1 The version (including the version prefix) # $2 The origin remote # $3 The full branch name (including the feature prefix) # VERSION=$1 ORIGIN=$2 BRANCH=$3 # Implement your script here. . "$HOOKS_DIR"/gitflow-functions gitflow_update_authors ROOTDIR=$(git rev-parse --show-toplevel) # Prepare new version # HOOKS_DIR is defined in gitflow-common. CURRENT_VERSION=$(grep -m1 "^#### " Changes.mdown | cut -f2 -d" ") gitflow_set_major_minor $CURRENT_VERSION gitflow_build_version gitflow_update_version $AVH_VERSION # To terminate the git-flow action, return a non-zero exit code. exit 0