templates / branches--on commit restore: reject invalid combinations with --staged (e3ddd3b)
   1: this is just to ensure the directory exists.