Permalink
Browse files

[fix] release: build version was taged with an offset of 1 between op…

…a --version and tag
  • Loading branch information...
1 parent 4d93efa commit ec1c23d070ffb94fc6149fc3046df5132557b98f Louis Gesbert committed with Mathieu Barbin Jul 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 buildinfos/generate_buildinfos.sh
@@ -79,7 +79,7 @@ git_date_cmd () { git log -n1 --pretty=format:%ad --date=short; }
# special case for opalang, the origin is the publication
git_opalang_version_cmd () {
local ORIGIN_SHA='fccc6851ccd2cb4fd9e83ba7b8c8d6d780ed3e13'
- git log --pretty=oneline "$ORIGIN_SHA".. | wc -l
+ git log --pretty=oneline "$ORIGIN_SHA".. | awk '/^'$ORIGIN_SHA'/ { x=1 } END { print NR+1-x }'
}
is_git_root () {

0 comments on commit ec1c23d

Please sign in to comment.