This check will always be true. I think you mean something like `gitOptions.pathspec.count > 0`.