Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git clone failure #11

Open
vrrdd opened this issue Oct 24, 2024 · 0 comments · May be fixed by #12
Open

Git clone failure #11

vrrdd opened this issue Oct 24, 2024 · 0 comments · May be fixed by #12

Comments

@vrrdd
Copy link

vrrdd commented Oct 24, 2024

Ubuntu 20.04.6 LTS
5.15.0-124-generic x86_64 HWE kernel

Cloning fails with the following error:

~/alx_dkms_installer$ ./setup
Checking dependencies...
Done
Downloading kernel source for 5.15.0 by git...
Cloning into 'linux-5.15.0'...
warning: Could not find remote branch 5.15.y to clone.
fatal: Remote branch 5.15.y not found in upstream origin
git failed to download the source. Check the output for information.

Based on git clone arguments, I suspect there has been a recent(?) naming change in linux source tree and/or its branches.

~/alx_dkms_installer$ diff setup setup_fix
18c18
<     git clone --depth 1 -b "v$kv" git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git "linux-$kv"
---
>     git clone --depth 1 -b "linux-${kv%?}y" https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git "linux-$kv"

Above change seems to fix the script, at least on the aforementioned machine.

@vrrdd vrrdd linked a pull request Oct 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant