Why are you putting the output of these commands in revision.txt? It's generally assumed that revision.txt (or similarly-named equivalents) will contain just the commit hash that the current site is on. Furthermore, by redirecting the output to the file, we lose the extra info from the push script output, where it's really useful.