From a088e4c2d9c36a1634a30854aae5f849a5bb9cb8 Mon Sep 17 00:00:00 2001 From: abitmore Date: Sun, 14 Jun 2020 10:13:49 +0000 Subject: [PATCH] Clean source code directory before building to get around the "Not a git repository" issue that occasionally occurs --- run-gitian | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run-gitian b/run-gitian index a5a7afc..d8bf580 100755 --- a/run-gitian +++ b/run-gitian @@ -136,7 +136,10 @@ _EOL_ done fi -[ -z "$BUILD" ] || gbuild "../../descriptors/bitshares-core-$OS.yml" -c bitshares="$VERSION" "$@" +[ -z "$BUILD" ] || ( + rm -rf vendor/gitian-builder/inputs/bitshares + gbuild "../../descriptors/bitshares-core-$OS.yml" -c bitshares="$VERSION" "$@" +) [ -z "$SIGN" ] || gsign --signer "$KEY_ID" --destination ../../signatures --release "$VERSION"-"$OS" \ "../../descriptors/bitshares-core-$OS.yml" [ -z "$VERIFY" ] || gverify --destination ../../signatures --release "$VERSION"-"$OS" \