Skip to content

Removal of command.GitPath()

Pavlo Strokov requested to merge ps-remove-global-git-path into master

Function 'command.GitPath()' depends on the global config.Config variable and uses internal call to set change the state of it in case it is not yet initialized properly. In order to remove this dependency it makes sense to remove the function completely and replace it's usage with actual value set explicitly at test setup stage. To deal with dependency the CommandFactory was added and now provides this configuration into 'command' packet to run the commands. As of now it is used as a stub with the old global 'config.Config' variable and this will be addressed in a follow up changes.

Part of: #2699 (closed)

Merge request reports