1git_tag_latest=$(git describe --abbrev=0) 2git_rev_count=$(git rev-list $git_tag_latest.. --count) 3git_rev_count=$[$git_rev_count+1] 4git_subject=$(git log --pretty="%s" -n 1) 5release=$git_rev_count 6if [[ "$release" != "1" ]]; then 7 release="${release}.git.$(git log --pretty='%h' -n 1)" 8fi 9revision=${git_tag_latest:1} 10