Skip to content

Commit 9e1b767

Browse files
committed
fixup: set git_dir
Signed-off-by: Loïc Minier <[email protected]>
1 parent da048f5 commit 9e1b767

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build-linux-deb.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ set_kernel_version() {
9191
# produce a version based on latest tag name, number of commits on top, and
9292
# sha of latest commit, for instance: v6.16, v6.17-rc3-289-gfe3ad7,
9393
# v6.17-rc4
94-
localversion="$(git describe --tags --abbrev=1)"
94+
localversion="$(GIT_DIR=linux/.git git describe --tags --abbrev=1)"
9595

9696
# remove leading "v" and prepend flavor
9797
localversion="${FLAVOR}-${localversion#v}"
9898

9999
log_i "Local version is $localversion"
100100

101101
# create or update tag
102-
git tag --force "$localversion"
102+
GIT_DIR=linux/.git git tag --force "$localversion"
103103

104104
# create localversion file for linux/scripts/setlocalversion
105-
echo "$localversion" >localversion
105+
echo "$localversion" >linux/localversion
106106
}
107107

108108
build_kernel() {

0 commit comments

Comments
 (0)