Skip to content

get-linux-source: use --revision instead of --branch - #201

Merged
theihor merged 1 commit into
mainfrom
get-linux-fix
Oct 22, 2025
Merged

get-linux-source: use --revision instead of --branch#201
theihor merged 1 commit into
mainfrom
get-linux-fix

Conversation

@theihor

@theihor theihor commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

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

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 <ihor.solodrai@linux.dev>
@theihor
theihor merged commit dc6aea4 into main Oct 22, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant