templates / branches--on commit restore: take tree-ish from --source option instead (c9c935f)
   1: this is just to ensure the directory exists.