templates / branches--on commit rebase: use @{upstream} if no upstream specified (15a147e)
   1: this is just to ensure the directory exists.