Browse Source

Fixes git commitId and link not showing up in tfb-status (#7320)

Nate 3 years ago
parent
commit
1541cd4ac6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      toolset/utils/results.py

+ 3 - 0
toolset/utils/results.py

@@ -38,6 +38,9 @@ class Results:
         self.environmentDescription = self.config.results_environment
         self.environmentDescription = self.config.results_environment
         try:
         try:
             self.git = dict()
             self.git = dict()
+            subprocess.call('git config --global --add safe.directory {}'.format(self.config.fw_root),
+                        shell=True,
+                        cwd=self.config.fw_root)
             self.git['commitId'] = self.__get_git_commit_id()
             self.git['commitId'] = self.__get_git_commit_id()
             self.git['repositoryUrl'] = self.__get_git_repository_url()
             self.git['repositoryUrl'] = self.__get_git_repository_url()
             self.git['branchName'] = self.__get_git_branch_name()
             self.git['branchName'] = self.__get_git_branch_name()