templates / branches--on commit new-workdir: handle rev-parse --git-dir not always giving full path (09381b4)
   1: this is just to ensure the directory exists.