nvie / gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.
http://nvie.com/posts/a-successful-git-branching-model/
Other
26.63k stars 2.66k forks source link

`release start` fails when -F is supplied #436

Open spudfkc opened 8 years ago

spudfkc commented 8 years ago

I tried creating a new release, explicitly specifying a commit and version and to fetch, but it looks like there is an issue when parsing the args - it seems like the version i supplied is set to the base commit variable.

git flow release start -F 1.7.3.9 cad4422d37a4396ccd0c31dfb08f75f7be4eba1b
> fatal: Given base '1.7.3.9' is not a valid commit on 'develop'.

I can just do a manual fetch before starting a release and just leave out the -F, but it's inconsistent with the help message:

$ git flow release start --help
usage: git flow release start [-h] [-F] version [base]

positional arguments:
  version
  base

optional arguments:
  -h, --help   show this help message and exit
  -F, --fetch  Fetch from origin before performing local operation.

Using git-flow commit: 15aab26490facf285acef56cb5d61025eacb3a69

SparK-Cruz commented 8 years ago

oh well: git flow release start 1.7.3.9 -F cad4422d37a4396ccd0c31dfb08f75f7be4eba1b or git flow release start -F cad4422d37a4396ccd0c31dfb08f75f7be4eba1b 1.7.3.9