Make templates directory relative
Call `git rev-list` directly