浏览代码

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.
Maximilian Luz 4 年之前
父节点
当前提交
365b15f8ef
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      .github/workflows/debian.yml
  2. 1 1
      .github/workflows/debian_lts.yml

+ 1 - 1
.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
 

+ 1 - 1
.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