petervanderdoes / gitflow-avh

AVH Edition of the git extensions to provide high-level repository operations for Vincent Driessen's branching model
http://nvie.com/posts/a-successful-git-branching-model/
Other
5.42k stars 528 forks source link

Bug: the version provided to hook does not contain version prefix when deleting a release branch #470

Open Konano opened 2 years ago

Konano commented 2 years ago

I added a hook named pre-flow-release-delete then run git flow delete, in the sample the annotation say the version provided to hook is including the version prefix, but I can't see this prefix.

Reproduction Hook

#!/bin/bash
#
# Runs before git flow release delete
#
# Positional arguments:
# $1    The version (including the version prefix)
# $2    The origin remote
# $3    The full branch name (including the release prefix)
#
# The following variables are available as they are exported by git-flow:
#
# MASTER_BRANCH - The branch defined as Master
# DEVELOP_BRANCH - The branch defined as Develop

VERSION=$1
ORIGIN=$2
BRANCH=$3

echo $VERSION

Reproduction Commands

# version prefix is "v"
git flow release start 1.5.0
git flow delete