templates / branches--on commit cache.h: move remote/connect API out of it (47a5918)
   1: this is just to ensure the directory exists.