clone: don't rely on auto-saving for single-branch
clone: don't rely on auto-saving for single-branch

The code used to rely on the clone code calling the remote's save, which
does not happen anymore, meaning that the configuration settings the
remote expected were not being written to disk.

The run-time configuration was still being affected, so the right branch
was being cloned. The tests continued to pass as we did not check for
the configuration entires. Fix this by creating the remote with the
single-branch refspec we want and checking for its existence in the
configuration.

falqas/libgit2,JIghtuse/libgit2,sygool/libgit2,yosefhackmon/libgit2,falqas/libgit2,since2014/libgit2,KTXSoftware/libgit2,leoyanggit/libgit2,leoyanggit/libgit2,linquize/libgit2,skabel/manguse,KTXSoftware/libgit2,oaastest/libgit2,saurabhsuniljain/libgit2,leoyanggit/libgit2,magnus98/TEST,joshtriplett/libgit2,oaastest/libgit2,MrHacky/libgit2,iankronquist/libgit2,mcanthony/libgit2,oaastest/libgit2,mcanthony/libgit2,jeffhostetler/public_libgit2,KTXSoftware/libgit2,claudelee/libgit2,mcanthony/libgit2,skabel/manguse,mcanthony/libgit2,t0xicCode/libgit2,joshtriplett/libgit2,linquize/libgit2,spraints/libgit2,joshtriplett/libgit2,Corillian/libgit2,amyvmiwei/libgit2,mhp/libgit2,falqas/libgit2,Tousiph/Demo1,kissthink/libgit2,spraints/libgit2,falqas/libgit2,mhp/libgit2,yosefhackmon/libgit2,jeffhostetler/public_libgit2,t0xicCode/libgit2,JIghtuse/libgit2,stewid/libgit2,since2014/libgit2,saurabhsuniljain/libgit2,claudelee/libgit2,t0xicCode/libgit2,Tousiph/Demo1,kissthink/libgit2,since2014/libgit2,ardumont/libgit2,iankronquist/libgit2,amyvmiwei/libgit2,nokiddin/libgit2,mhp/libgit2,yongthecoder/libgit2,skabel/manguse,iankronquist/libgit2,joshtriplett/libgit2,kissthink/libgit2,kenprice/libgit2,mrksrm/Mingijura,leoyanggit/libgit2,sygool/libgit2,sim0629/libgit2,JIghtuse/libgit2,saurabhsuniljain/libgit2,claudelee/libgit2,JIghtuse/libgit2,ardumont/libgit2,amyvmiwei/libgit2,magnus98/TEST,ardumont/libgit2,nokiddin/libgit2,claudelee/libgit2,nokiddin/libgit2,jeffhostetler/public_libgit2,linquize/libgit2,ardumont/libgit2,dleehr/libgit2,iankronquist/libgit2,yosefhackmon/libgit2,stewid/libgit2,sygool/libgit2,mingyaaaa/libgit2,saurabhsuniljain/libgit2,amyvmiwei/libgit2,spraints/libgit2,yosefhackmon/libgit2,linquize/libgit2,oaastest/libgit2,mingyaaaa/libgit2,kenprice/libgit2,magnus98/TEST,KTXSoftware/libgit2,joshtriplett/libgit2,Corillian/libgit2,mhp/libgit2,nokiddin/libgit2,skabel/manguse,jeffhostetler/public_libgit2,linquize/libgit2,falqas/libgit2,t0xicCode/libgit2,mingyaaaa/libgit2,dleehr/libgit2,skabel/manguse,sim0629/libgit2,kenprice/libgit2,mrksrm/Mingijura,since2014/libgit2,stewid/libgit2,mrksrm/Mingijura,mingyaaaa/libgit2,kissthink/libgit2,mhp/libgit2,kenprice/libgit2,Tousiph/Demo1,KTXSoftware/libgit2,since2014/libgit2,magnus98/TEST,yongthecoder/libgit2,spraints/libgit2,nokiddin/libgit2,Corillian/libgit2,oaastest/libgit2,since2014/libgit2,iankronquist/libgit2,nokiddin/libgit2,magnus98/TEST,yongthecoder/libgit2,KTXSoftware/libgit2,kenprice/libgit2,yosefhackmon/libgit2,kenprice/libgit2,t0xicCode/libgit2,stewid/libgit2,mrksrm/Mingijura,yongthecoder/libgit2,sygool/libgit2,JIghtuse/libgit2,dleehr/libgit2,spraints/libgit2,claudelee/libgit2,MrHacky/libgit2,Tousiph/Demo1,sygool/libgit2,amyvmiwei/libgit2,iankronquist/libgit2,oaastest/libgit2,falqas/libgit2,skabel/manguse,mingyaaaa/libgit2,Tousiph/Demo1,stewid/libgit2,saurabhsuniljain/libgit2,MrHacky/libgit2,Corillian/libgit2,yongthecoder/libgit2,stewid/libgit2,Tousiph/Demo1,leoyanggit/libgit2,ardumont/libgit2,mhp/libgit2,sim0629/libgit2,kissthink/libgit2,magnus98/TEST,joshtriplett/libgit2,mcanthony/libgit2,amyvmiwei/libgit2,linquize/libgit2,claudelee/libgit2,Corillian/libgit2,t0xicCode/libgit2,yosefhackmon/libgit2,ardumont/libgit2,leoyanggit/libgit2,sim0629/libgit2,dleehr/libgit2,mrksrm/Mingijura,JIghtuse/libgit2,mingyaaaa/libgit2,Corillian/libgit2,sygool/libgit2,mrksrm/Mingijura,sim0629/libgit2,yongthecoder/libgit2,spraints/libgit2,dleehr/libgit2,jeffhostetler/public_libgit2,jeffhostetler/public_libgit2,MrHacky/libgit2,kissthink/libgit2,saurabhsuniljain/libgit2,MrHacky/libgit2,mcanthony/libgit2,MrHacky/libgit2,sim0629/libgit2,dleehr/libgit2