From 8353b2f663c5ad2053fe2f9284cd70a79eefd445 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..8545a7a 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 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" \