Not sure my idea above will work because the committish could be out of the depth specified.