[ncdu] don't force branch

This commit is contained in:
Gwenhael Le Moine 2023-08-15 15:37:59 +02:00
parent 297788d689
commit 2862dddfdd
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -32,8 +32,6 @@ git submodule update
cp -R "$REPOSITORY" $TMP/
cd "$TMP/$PRGNAM/" || exit 1
git checkout zig-0.10
[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0)
[ "$VERSION" == "" ] && VERSION=trunk
[ "$VERSION" == "trunk" ] && VERSION="git_r$(git rev-list --count HEAD)_$(git log -1 --format=%h)" || git checkout "$VERSION"