Hide Forgot
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
pushed to gerrit for review
sort -V doesn't work in RHEL5.
this has been solved.