templates / branches--on commit remote.c: introduce branch_get_upstream helper (a9f9f8c)
   1: this is just to ensure the directory exists.