In order to get a revision number to connect only with the correct server version, I found this information:
http://stackoverflow.com/questions/1816985/simulating-a-global-revision-number-with-git
That should be very useful and does not need my old hackish shell script I posted months ago.
Thank you - that is most kind. I will look into that when I return from holiday.