Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Chandler <wchandler@gitlab.com>2023-01-31 18:58:49 +0300
committerWill Chandler <wchandler@gitlab.com>2023-02-02 18:07:03 +0300
commited4087c41089fd64bada2e905dae5f50146412ca (patch)
treee16a8a1299a8c89958988808a2a5f783c3b37b17 /_support
parent5ed08e744c76a205991a2e76a229ecc8813a70f1 (diff)
benchmarking: Clone Gitaly using target revision
Currently we clone Gitaly at HEAD and then peel the requested revision and check that out. This works fine if you're using HEAD as your rev, but a branch name will fail as we haven't created a local branch with that name yet. To resolve this, perform the initial clone using the requested revision before peeling.
Diffstat (limited to '_support')
-rw-r--r--_support/benchmarking/roles/client/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/_support/benchmarking/roles/client/tasks/main.yml b/_support/benchmarking/roles/client/tasks/main.yml
index f917d804e..712161a04 100644
--- a/_support/benchmarking/roles/client/tasks/main.yml
+++ b/_support/benchmarking/roles/client/tasks/main.yml
@@ -14,10 +14,11 @@
owner: git
group: git
-- name: Clone Gitaly at HEAD
+- name: Clone Gitaly
git:
repo: https://gitlab.com/gitlab-org/gitaly.git
dest: /src/gitaly
+ version: "{{ gitaly_revision }}"
become_user: git
- name: Peel gitaly_revision