Add a hook to grab the HEAD ref after checkout