Commit dc6aea4
authored
get-linux-source: use --revision instead of --branch (#201)
libbpf ci got broken due to recent changes in the get-linux-source
scripts [1]. We now use git clone, and --branch doesn't work if you
pass in a commit sha.
Modify the script to use --revision argument [2], and make sure git is
sufficiently new (this is relatively new feature).
[1] https://github.com/libbpf/libbpf/actions/runs/18725797440/job/53409993399
[2] https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---revisionrev
Signed-off-by: Ihor Solodrai <[email protected]>1 parent 8b51dbe commit dc6aea4
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | | - | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
0 commit comments