We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400bd0c commit cbbefa2Copy full SHA for cbbefa2
infra/ansible/roles/build_srcs/tasks/main.yaml
@@ -8,9 +8,18 @@
8
# ansible.builtin.git wants to fetch the entire history, so check out the pin manually
9
ansible.builtin.shell:
10
cmd: |
11
- git fetch origin {{ torch_pin.stdout }}
12
- git checkout --recurse-submodules {{ torch_pin.stdout }}
+ set -xe
+ PIN="{{ torch_pin.stdout }}"
13
+ if [[ $PIN = \#* ]]; then
14
+ PRNUM="${PIN//[!0-9]/}"
15
+ git fetch origin "pull/$PRNUM/head"
16
+ else
17
+ git fetch origin {{ torch_pin.stdout }}
18
+ fi
19
+ git checkout --recurse-submodules FETCH_HEAD
20
chdir: "{{ (src_root, 'pytorch') | path_join }}"
21
+ args:
22
+ executable: /bin/bash
23
when: torch_pin is succeeded
24
25
- name: Build PyTorch
0 commit comments