Explorar o código

Fix saving the git commit id during continuous benchmarking (#2928)

Michael Hixson %!s(int64=8) %!d(string=hai) anos
pai
achega
5c1c6443bf
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      toolset/continuous/tasks/record-git-commit.sh

+ 3 - 3
toolset/continuous/tasks/record-git-commit.sh

@@ -3,8 +3,8 @@
 # save the current git commit to results/.commit
 #
 echo "Saving current git commit to results directory..."
-GIT_COMMIT=$(git rev-parse HEAD)
-mkdir -p results
-echo $GIT_COMMIT > results/.commit
+GIT_COMMIT=$(git -C $TFB_REPOPARENT/$TFB_REPONAME rev-parse HEAD)
+mkdir -p $TFB_REPOPARENT/$TFB_REPONAME/results
+echo $GIT_COMMIT > $TFB_REPOPARENT/$TFB_REPONAME/results/commit_id.txt
 echo "Using commit: " $GIT_COMMIT