Closed CidTori closed 2 years ago
For the record, git for-each-ref --format="%(refname:short)" refs/heads/release/**
doesn't work on CMD (it gives short)
...), but git for-each-ref --format="%%%%%%%%(refname:short)" refs/heads/release/**
does... (Windows is fun)
Which git version? Which windows? Which plugin version do you use? How do you running maven build?
mvn -X gitflow:release-finish
on CMDCannot reproduce.
The git for-each-ref --format="%(refname:short)" refs/heads/release/**
works just fine in cmd and power shell.
When git tries to checkout unknown branch it will fail along with the maven goal, outputting something like release-finish: error: pathspec 'some_wrong_branch_name_here' did not match any file(s) known to git
and BUILD FAILURE
.
Did you try release-finish after a successful release-start?
It seems that in my case, git for-each-ref --format="%(refname:short)" refs/heads/release/**
will output a short)
line for any release/ branch in my repo, but sometimes (I didn't determine the conditions yet), release-start will also fail silently and, since it didn't create a release/ branch, no short)
is output with git for-each-ref --format="%(refname:short)" refs/heads/release/**
.
You can also simply try git for-each-ref --format="%(refname:short)"
in any repo
Nevermind, I found the problem : on my machine I call git through a .bat that calls git.exe, passing the CLI parameters with %*
, which apparently do the %
substitution somewhere.
I'm closing this.
When running
mvn gitflow:release-finish
(for example) in CMD on Windows (with git for Windows installed), strange things happen :BUILD SUCCESS
at the end (the command did nothing but commit "Update for next development version" on the release branch...)