Skip to content

Commit d289913

Browse files
committed
mesa-snapshot: actually checkout selected commit id
The code in the mesa-snapshot.sh was fetching the specified commit, but wasn't switching to it. It wasn't that important previously, as packages were simply using newer commit, but it's important now as we are using 25.2 branch instead of main. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent abe4415 commit d289913

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

overlay-debs/mesa-snapshot/mesa-snapshot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ git clone --depth 1 https://gitlab.freedesktop.org/mesa/mesa
1717
cd mesa
1818
git fetch --depth 1 origin ${COMMIT##origin/}
1919

20+
git checkout -f ${COMMIT}
21+
2022
date=$(git log -1 --format=%cd --date=format:%Y%m%d ${COMMIT})
2123
subject=$(git log -1 --format="%h (\"%s\")" ${COMMIT})
2224
version=25.2.0~git${date}

0 commit comments

Comments
 (0)