mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
release.sh: make the list of tags reproducible
When doing git-clone to a subdir, do not keep tags, since there can be local tags affecting `git describe` and buildvcs info. Instead pull the tags from upstream.
This commit is contained in:
parent
a889fbecb3
commit
ec53b0d2d4
1 changed files with 13 additions and 1 deletions
14
release.sh
14
release.sh
|
|
@ -157,7 +157,19 @@ fi
|
|||
green " - Cloning to subdir ${BUILD_DIR} to get clean Git"
|
||||
mkdir -p "$BUILD_DIR"
|
||||
cd "$BUILD_DIR"
|
||||
git clone --tags "$SCRIPT_DIR" .
|
||||
git clone --no-tags "$SCRIPT_DIR" .
|
||||
|
||||
# It is cloned without tags from the local dir and tags are pulled later
|
||||
# from the upstream to make sure we have the same set of tags. Otherwise
|
||||
# we can endup with different `git describe` and buildvcs info depending
|
||||
# on local tags.
|
||||
green " - Pulling tags from upstream"
|
||||
git pull --tags https://github.com/lightninglabs/loop
|
||||
|
||||
# The cloned Git repo may be on wrong branch and commit.
|
||||
commit=$(git --git-dir "${SCRIPT_DIR}/.git" rev-parse HEAD)
|
||||
green " - Checkout commit ${commit} in ${BUILD_DIR}"
|
||||
git checkout -b build-branch "$commit"
|
||||
|
||||
green " - Checking tag $1"
|
||||
check_tag $1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue