Skip to content

Commit

Permalink
build(build-docker): perform a reproducible shallow clone of the repo…
Browse files Browse the repository at this point in the history
…sitory in build-docker.sh
  • Loading branch information
matejcik authored and mmilata committed Dec 4, 2024
1 parent 2635e4c commit 7d4cd8f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ INIT=1
MODELS=(R T T3T1)
CORE_TARGETS=(boardloader bootloader firmware)

REPOSITORY="/local"
REPOSITORY="file:///local"

while true; do
case "$1" in
Expand Down Expand Up @@ -204,7 +204,7 @@ if [ $INIT -eq 1 ]; then
mkdir -p /reproducible-build
cd /reproducible-build
git clone "$REPOSITORY" trezor-firmware
git clone --branch="$TAG" --depth=1 "$REPOSITORY" trezor-firmware
cd trezor-firmware
EOF

Expand All @@ -224,8 +224,6 @@ fi # init
# append common part to script
cat <<EOF >> "$SCRIPT_NAME"
$GIT_CLEAN_REPO
git fetch origin "$COMMIT_HASH"
git checkout "$COMMIT_HASH"
git submodule update --init --recursive
poetry install
cd core/embed/rust
Expand Down

0 comments on commit 7d4cd8f

Please sign in to comment.