Fix bug in merged git refspec code