git_config: add support for remote '.'
git_config: add support for remote '.'

As a fix for issue #149, this patch add support for the remote '.'
(local).

As an alias for the local repository, remote '.' is lacking a fetch =
config in .git/config.

Without such refspec, repo info --overview is not able to process a
local tracking branch.

v2: Check for name == '.' before checking if merge starts with refs/,
    since the case where it's not is invalid.

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Filipe Brandenburger <filbranden@google.com>

Change-Id: I8c8fd8602cd68baecb530301ae41d37d751ec85d

testbetta/git-repo-pub,lewixliu/git-repo,qioixiy/git-repo,wavecomp/git-repo,iAlios/git-repo,darrengarvey/git-repo,jingyu/git-repo,zemug/repo,GerritCodeReview/git-repo,11NJ/git-repo,qupai/git-repo,qioixiy/git-repo,darrengarvey/git-repo,dodocat/git-repo,daimajia/git-repo,FlymeOS/repo,FuangCao/repo,GatorQue/git-repo-flow,FuangCao/git-repo,gbraad/git-repo,gbraad/git-repo,GatorQue/git-repo-flow,derron/git-repo,daimajia/git-repo,xyyangkun/git-repo,chzhong/git-repo,TheQtCompany/git-repo,jingyu/git-repo,mer-tools/git-repo,testbetta/repo-pub,aosp-mirror/tools_repo,llg84/google_repo,chzhong/git-repo,petemoore/git-repo,xyyangkun/git-repo,qupai/git-repo,ediTLJ/git-repo,aosp-mirror/tools_repo,testbetta/git-repo-pub,mozilla/git-repo,ronan22/repo,kdavis-mozilla/repo-repo,testbetta/repo-pub,biaolv/git-repo,couchbasedeps/git-repo,hacker-camp/google_repo,iAlios/git-repo,DavidPu/git-repo,ediTLJ/git-repo,flingone/git-repo,biaolv/git-repo,IbpTeam/repo,4455jkjh/repo,hacker-camp/google_repo,DavidPu/git-repo,llg84/google_repo,FuangCao/repo,CyanogenMod/tools_repo,ChronoMonochrome/repo,frogbywyplay/git-repo,dodocat/git-repo,petemoore/git-repo,FuangCao/git-repo,couchbasedeps/git-repo,derron/git-repo,FlymeOS/repo,slfyusufu/repo,demonyangyue/git-repo,nuclearmistake/repo,gabbayo/git-repo,wavecomp/git-repo,mer-tools/git-repo,4455jkjh/repo,TheQtCompany/git-repo,demonyangyue/git-repo,lipro-yocto/git-repo,lipro-yocto/git-repo,lewixliu/git-repo,codetutil/git-repo,slfyusufu/repo,mozilla/git-repo,kangear/git-repo,ronan22/repo,simbasailor/git-repo,zemug/repo,simbasailor/git-repo,nuclearmistake/repo,chenzilin/git-repo,hisilicon/git-repo,frogbywyplay/git-repo,gabbayo/git-repo,kangear/git-repo,11NJ/git-repo,CyanogenMod/tools_repo,GerritCodeReview/git-repo,kdavis-mozilla/repo-repo,flingone/git-repo,chenzilin/git-repo,codetutil/git-repo,ChronoMonochrome/repo,hisilicon/git-repo,mixedpuppy/git-repo,mixedpuppy/git-repo,IbpTeam/repo