Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

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

Open
Konano opened this issue Jan 25, 2022 · 0 comments

Comments

@Konano
Copy link

Konano commented Jan 25, 2022

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant