Use git closure for shallowClone