Make mkdir early exit cases clearer
Make mkdir early exit cases clearer

There are two places where git_futils_mkdir should exit early or
at least do less.  The first is when using GIT_MKDIR_SKIP_LAST
and having that flag leave no directory left to create; it was
being handled previously, but the behavior was subtle.  Now I put
in a clear explicit check that exits early in that case.

The second is when there is no directory to create, but there is
a valid path that should be verified.  I shifted the logic a bit
so we'll be better about not entering the loop than that happens.

leoyanggit/libgit2,stewid/libgit2,JIghtuse/libgit2,falqas/libgit2,whoisj/libgit2,maxiaoqian/libgit2,claudelee/libgit2,sygool/libgit2,linquize/libgit2,yongthecoder/libgit2,spraints/libgit2,spraints/libgit2,nokiddin/libgit2,raybrad/libit2,swisspol/DEMO-libgit2,saurabhsuniljain/libgit2,claudelee/libgit2,iankronquist/libgit2,JIghtuse/libgit2,kenprice/libgit2,ardumont/libgit2,linquize/libgit2,skabel/manguse,nokiddin/libgit2,yosefhackmon/libgit2,mrksrm/Mingijura,Snazz2001/libgit2,ardumont/libgit2,t0xicCode/libgit2,falqas/libgit2,Tousiph/Demo1,Tousiph/Demo1,JIghtuse/libgit2,iankronquist/libgit2,sim0629/libgit2,kissthink/libgit2,mrksrm/Mingijura,Aorjoa/libgit2_maked_lib,ardumont/libgit2,ardumont/libgit2,stewid/libgit2,t0xicCode/libgit2,iankronquist/libgit2,since2014/libgit2,jeffhostetler/public_libgit2,KTXSoftware/libgit2,since2014/libgit2,saurabhsuniljain/libgit2,skabel/manguse,KTXSoftware/libgit2,jeffhostetler/public_libgit2,kissthink/libgit2,skabel/manguse,kenprice/libgit2,raybrad/libit2,JIghtuse/libgit2,since2014/libgit2,swisspol/DEMO-libgit2,raybrad/libit2,mingyaaaa/libgit2,sygool/libgit2,jeffhostetler/public_libgit2,falqas/libgit2,leoyanggit/libgit2,mhp/libgit2,dleehr/libgit2,joshtriplett/libgit2,jflesch/libgit2-mariadb,claudelee/libgit2,swisspol/DEMO-libgit2,linquize/libgit2,Corillian/libgit2,Corillian/libgit2,mcanthony/libgit2,whoisj/libgit2,joshtriplett/libgit2,evhan/libgit2,magnus98/TEST,sygool/libgit2,mingyaaaa/libgit2,kenprice/libgit2,yongthecoder/libgit2,Snazz2001/libgit2,yosefhackmon/libgit2,JIghtuse/libgit2,amyvmiwei/libgit2,mrksrm/Mingijura,Snazz2001/libgit2,yongthecoder/libgit2,leoyanggit/libgit2,Tousiph/Demo1,maxiaoqian/libgit2,sim0629/libgit2,yongthecoder/libgit2,chiayolin/libgit2,raybrad/libit2,saurabhsuniljain/libgit2,dleehr/libgit2,dleehr/libgit2,t0xicCode/libgit2,oaastest/libgit2,linquize/libgit2,t0xicCode/libgit2,KTXSoftware/libgit2,amyvmiwei/libgit2,mingyaaaa/libgit2,MrHacky/libgit2,sim0629/libgit2,kenprice/libgit2,Snazz2001/libgit2,Corillian/libgit2,evhan/libgit2,yongthecoder/libgit2,mhp/libgit2,since2014/libgit2,whoisj/libgit2,mrksrm/Mingijura,KTXSoftware/libgit2,t0xicCode/libgit2,falqas/libgit2,rcorre/libgit2,rcorre/libgit2,nokiddin/libgit2,raybrad/libit2,rcorre/libgit2,mcanthony/libgit2,Snazz2001/libgit2,Tousiph/Demo1,amyvmiwei/libgit2,amyvmiwei/libgit2,rcorre/libgit2,since2014/libgit2,since2014/libgit2,chiayolin/libgit2,swisspol/DEMO-libgit2,MrHacky/libgit2,chiayolin/libgit2,MrHacky/libgit2,stewid/libgit2,dleehr/libgit2,t0xicCode/libgit2,mcanthony/libgit2,Aorjoa/libgit2_maked_lib,JIghtuse/libgit2,nokiddin/libgit2,mcanthony/libgit2,magnus98/TEST,oaastest/libgit2,Corillian/libgit2,maxiaoqian/libgit2,iankronquist/libgit2,sygool/libgit2,kissthink/libgit2,falqas/libgit2,Corillian/libgit2,Snazz2001/libgit2,yongthecoder/libgit2,joshtriplett/libgit2,evhan/libgit2,whoisj/libgit2,iankronquist/libgit2,Tousiph/Demo1,spraints/libgit2,jeffhostetler/public_libgit2,magnus98/TEST,maxiaoqian/libgit2,mhp/libgit2,dleehr/libgit2,mrksrm/Mingijura,sim0629/libgit2,leoyanggit/libgit2,dleehr/libgit2,leoyanggit/libgit2,MrHacky/libgit2,KTXSoftware/libgit2,mhp/libgit2,chiayolin/libgit2,swisspol/DEMO-libgit2,stewid/libgit2,sygool/libgit2,oaastest/libgit2,mhp/libgit2,ardumont/libgit2,maxiaoqian/libgit2,stewid/libgit2,swisspol/DEMO-libgit2,iankronquist/libgit2,leoyanggit/libgit2,chiayolin/libgit2,ardumont/libgit2,oaastest/libgit2,mrksrm/Mingijura,Aorjoa/libgit2_maked_lib,yosefhackmon/libgit2,linquize/libgit2,saurabhsuniljain/libgit2,jeffhostetler/public_libgit2,sygool/libgit2,MrHacky/libgit2,skabel/manguse,spraints/libgit2,saurabhsuniljain/libgit2,spraints/libgit2,amyvmiwei/libgit2,jeffhostetler/public_libgit2,chiayolin/libgit2,Aorjoa/libgit2_maked_lib,mcanthony/libgit2,falqas/libgit2,KTXSoftware/libgit2,joshtriplett/libgit2,jflesch/libgit2-mariadb,jflesch/libgit2-mariadb,sim0629/libgit2,joshtriplett/libgit2,jflesch/libgit2-mariadb,joshtriplett/libgit2,rcorre/libgit2,Tousiph/Demo1,linquize/libgit2,skabel/manguse,saurabhsuniljain/libgit2,amyvmiwei/libgit2,oaastest/libgit2,evhan/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,kissthink/libgit2,kenprice/libgit2,kenprice/libgit2,mhp/libgit2,oaastest/libgit2,whoisj/libgit2,yosefhackmon/libgit2,magnus98/TEST,Corillian/libgit2,jflesch/libgit2-mariadb,spraints/libgit2,magnus98/TEST,claudelee/libgit2,skabel/manguse,MrHacky/libgit2,whoisj/libgit2,magnus98/TEST,nokiddin/libgit2,kissthink/libgit2,claudelee/libgit2,yosefhackmon/libgit2,claudelee/libgit2,stewid/libgit2,kissthink/libgit2,yosefhackmon/libgit2,sim0629/libgit2,jflesch/libgit2-mariadb,mcanthony/libgit2,nokiddin/libgit2,maxiaoqian/libgit2,rcorre/libgit2,Aorjoa/libgit2_maked_lib,mingyaaaa/libgit2