You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A workaround solution that works is using exec directly
… and it is one less unjustified useless dependency on a dead broken piece of code that does no better than calling the git command directly, not even bringing clarity but cloaking it in a broken wrap.
I apologize for the quick mockery opinion above.
More seriously, it would be worth warning readers in the documentation that calling git is a preferred method over using pear/versioncontrol_git's dependant gitdescribe.
Describe the bug
When capturing most recent tag into property; the property ends with a newline character.
Note: due to time constraints, we will only accept security and other high-priority issues for the 2.x versions.
Steps To Reproduce
Actual tags:
cat build.xml
:Wrong result of running
./vendor/bin/phing bugreport -verbose
:Somehow
[gitdescribe] git-describe output: v1.0.2-1-g9823
looks right with no additional newline added at the end of the string yet.But the
mostRecentTag
property clearly has a newline at end as shown by the output:It is a problem when trying to compose an archive name with the property containing the capture git tag
${project.name}-${mostRecentTag}.zip
.The archive name look like this in
ls -l
:Expected behavior
It is expected that the trailing newline bet not added to the property value.
Additional notes
It is possible that the bug lies within https://github.com/pear/VersionControl_Git but there is no issue tracking in this GitHub repository.
Until this can be fixed.
A workaround solution that works is using
exec
directly… and it is one less unjustified useless dependency on a dead broken piece of code that does no better than calling the
git
command directly, not even bringing clarity but cloaking it in a broken wrap.I apologize for the quick mockery opinion above.
More seriously, it would be worth warning readers in the documentation that calling git is a preferred method over using
pear/versioncontrol_git
's dependantgitdescribe
.The text was updated successfully, but these errors were encountered: