Call path_to_repo only when using gitaly
Call path_to_repo only when using gitaly

mmkassem/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,iiet/iiet-git,iiet/iiet-git,jirutka/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,dreampet/gitlab,iiet/iiet-git