added protection against unspecified gitBase/gitSource