take advantage of now having a proper ref->sha1 mapping


this makes things marginally faster, but mostly just more consistent.

Change-Id: Ifdd84b54bb541ba13c9ff1fa349e0a2479f6060f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
commitc7cccea498425db98ad276d5b43ddb1148f88921
parentd70bdf7bbca5e3426a49381af049e9f2632a4bf6
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
committerDaniel Smith <Daniel.Smith@qt.io>
commit timeFri, 15 May 2020 07:39:50 +0000