templates / branches--on commit Teach resolve_gitlink_ref() about the .git file (842abf0)
   1: this is just to ensure the directory exists.