Fix a small bug with automatic revision detection

As the repository is only fetched, not pulled, the local branch lags behind.
This commit is contained in:
2015-09-13 13:45:21 +02:00
parent 2d3bb18edb
commit e0103f4f30
+1 -1
View File
@@ -135,7 +135,7 @@ echo -e "\033[1;35mRun on \033[34m$(date)\033[35m by \033[34m$USER\033[35m:\n---
fi
# Get the commit hash from the set branch
revision="$(cd "$project/repo"; git rev-list --max-count=1 "$branch")"
revision="$(cd "$project/repo"; git rev-list --max-count=1 "origin/$branch")"
if [[ $? != 0 ]]; then
echo -e " => \033[31mCould not determine current revision.\033[0m" >&2
exit 1