cd "$DOCREPO" || exit $?
git pull "$MASTERREPO" master &&
-test $(git-rev-parse --verify refs/heads/master) == "$ID" || exit $?
+test $(git-rev-parse --verify refs/heads/master) == "$ID" &&
+NID=$(git-describe --abbrev=4 "$ID") &&
+test '' != "$NID" || exit $?
# Set up subrepositories
test -d doc-htmlpages || (
cd ../doc-htmlpages &&
git add . &&
- if git commit -a -m "Autogenerated HTML docs for $ID"
+ if git commit -a -m "Autogenerated HTML docs for $NID"
then
git-send-pack "$MASTERREPO" master:refs/heads/html || {
echo "* HTML failure"
cd ../doc-manpages &&
git add . &&
- if git commit -a -m "Autogenerated man pages for $ID"
+ if git commit -a -m "Autogenerated man pages for $NID"
then
git-send-pack "$MASTERREPO" master:refs/heads/man || {
echo "* man failure"