From 365b15f8efa55a74ea7923f76fffcef1e0a9e037 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sun, 1 Aug 2021 16:19:00 +0200 Subject: [PATCH] pkd/debian: Clone full git branch to make 'git am -3' work The 'git am -3' command fails for shallow clones. Let's clone the repo with '--single-branch' instead, which will fetch the full history of the cloned branch, but will not fetch other branches. --- .github/workflows/debian.yml | 2 +- .github/workflows/debian_lts.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 2cd05a95c..79c25663e 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -43,7 +43,7 @@ jobs: # get ubuntu mainline source # see https://kernel.ubuntu.com/~kernel-ppa/mainline - git clone "$MAINLINE_REPO" --branch "$MAINLINE_BRANCH/v$KERNEL_VERSION" --depth 1 linux + git clone "$MAINLINE_REPO" --branch "$MAINLINE_BRANCH/v$KERNEL_VERSION" --single-branch cd linux diff --git a/.github/workflows/debian_lts.yml b/.github/workflows/debian_lts.yml index 9d2de7487..0b45fefc0 100644 --- a/.github/workflows/debian_lts.yml +++ b/.github/workflows/debian_lts.yml @@ -43,7 +43,7 @@ jobs: # get ubuntu mainline source # see https://kernel.ubuntu.com/~kernel-ppa/mainline - git clone "$MAINLINE_REPO" --branch "$MAINLINE_BRANCH/v$KERNEL_VERSION" --depth 1 linux + git clone "$MAINLINE_REPO" --branch "$MAINLINE_BRANCH/v$KERNEL_VERSION" --single-branch cd linux