X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=python-eventlet%2Fbin%2Fbuild-website.bash;h=6fd4e0154e2bb07d235a1f2d091cc6805e2b3c64;hb=refs%2Ftags%2Fmos-9.0;hp=8f461e0db8902ee735e43ab3fdf89b2b30671c3b;hpb=358bd9258c2b6d2ee74de4dfd07a5123107abad4;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/python-eventlet/bin/build-website.bash b/python-eventlet/bin/build-website.bash index 8f461e0..6fd4e01 100755 --- a/python-eventlet/bin/build-website.bash +++ b/python-eventlet/bin/build-website.bash @@ -53,8 +53,7 @@ rm -f "doc/changelog.rst" if [ $commit -eq 1 ]; then echo "3. Updating git branch gh-pages" - source_name=`git rev-parse --abbrev-ref HEAD` - source_id=`git rev-parse --short HEAD` + source_name=`git describe --dirty --tags` git branch --track gh-pages origin/gh-pages || true git checkout gh-pages git ls-files |grep -Ev '^.gitignore$' |xargs rm -f @@ -70,5 +69,5 @@ if [ $commit -eq 1 ]; then git status read -p "Carefully read git status output above, press Enter to continue or Ctrl+C to abort" - git commit --edit -m "Website built from $source_name $source_id" + git commit --edit -m "Website built from $source_name" fi