| Summary: | make bkradd will not pickup latest tag if using git | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Bill Peck <bpeck> |
| Component: | command line | Assignee: | Bill Peck <bpeck> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.6 | CC: | bpeck, dcallagh, mcsontos, rmancy, stl, tpelka |
| Target Milestone: | future_maint | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 16:15:04 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
pushed to gerrit for review sort -V doesn't work in RHEL5. this has been solved. |
Description of problem: Vladimir remember me discussion about rht-mk-get-current-tag. This problem is pretty the same as mentioned. Issue appears when more than one tag are in the same day. See line 44 in rht-mk-get-current-tag. CURRENT_TAG=$(git for-each-ref --count=1 --sort=-committerdate --format="%(refname)" "refs/tags/${PACKAGE_NAME}*" | cut -c 11-)" This line always return the first tag in day. Temporary solution is simple replace line 44 for: CURRENT_TAG=$(git tag -l | grep -E "${PACKAGE_NAME}-([0-9_\-]+)" | sort -V |tail -n1) Kudos to Vlad. On 03/29/2011 11:17 AM, Tomas Pelka wrote: > Hi folks, > > I've updated my beakerlib (to 1.3-6) yesterday and meet several problems. Seems that "make bkradd" is comparing the current tag created by "make tag" with the latest tag in out git repo. > > You need to run "git push --tags" first and "make brkadd" afterwards. > > Cheers