for-each-ref example: init/shutdown libgit2 in main
for-each-ref example: init/shutdown libgit2 in main

I don't get how it was working without git_libgit2_init() call. I run it
and libgit2 throws assertion somewhere in its internals. Now it works.

Updated commit with shutdown at the end.

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