the root patch should always send the git hash it corresponds to to all git commands, rather than looking up the master head hash again, so that the results are consistent even if the repo directory on disk changes