diff --git a/obs-service-tar_scm.changes b/obs-service-tar_scm.changes index 1bb3216..4178de3 100644 --- a/obs-service-tar_scm.changes +++ b/obs-service-tar_scm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Sep 24 11:47:27 UTC 2012 - jslaby@suse.com + +- add --date=short to get_vesion of git and remove '-' chars + by sed. This allows us to use %ad as versionformat and + have something like "20120916" as version instead of + terrible Unix timestamps. + ------------------------------------------------------------------- Fri Jul 27 11:16:47 UTC 2012 - aspiers@suse.com diff --git a/tar_scm b/tar_scm index b4714e9..0c10665 100644 --- a/tar_scm +++ b/tar_scm @@ -402,7 +402,7 @@ get_version () { case "$MYSCM" in git) #version=`safe_run git show --pretty=format:"$MYFORMAT" | head -n 1` - version=`safe_run git log -n1 --pretty=format:"$MYFORMAT"` + version=`safe_run git log -n1 --date=short --pretty=format:"$MYFORMAT"|sed 's@-@@g'` ;; svn) #rev=`LC_ALL=C safe_run svn info | awk '/^Revision:/ { print $2 }'`