gitflow-avh icon indicating copy to clipboard operation
gitflow-avh copied to clipboard

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

Open Konano opened this issue 3 years ago • 0 comments

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

Konano avatar Jan 25 '22 17:01 Konano