Make git checking a revision work better

This is part of issue 225.

The "is this already the correct revision" code in git.py was not
expanding the revision from the build description out to a full
SHA1 code, so would raise false negatives.
Merge branch 'master' of github.com:tibs/muddle.mirror