Minor cleanup for VCSSyncer code in gitserver/main
Created by: varungandhi-src
I will shortly be adding a third case to the switch
which had nearly the same code as the other two cases, so I figured that I might as well extract that out into a function.