fetch: move 'head' so it's visible to the whole function
fetch: move 'head' so it's visible to the whole function

Signed-off-by: Carlos Martín Nieto <ab5e2bca84933118bbc9d48ffaccce3bac4eeb64@cmartin.tk>

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