[tor-commits] [tor-browser-bundle/hardened-builds] Bug 20903: Update gitian branch for nightlies if needed

gk at torproject.org gk at torproject.org
Tue Dec 6 20:29:25 UTC 2016


commit a0c4b74b735e2e2c71bfe9054cde5085ca9033c7
Author: Georg Koppen <gk at torproject.org>
Date:   Tue Dec 6 19:55:17 2016 +0000

    Bug 20903: Update gitian branch for nightlies if needed
---
 gitian/fetch-inputs.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gitian/fetch-inputs.sh b/gitian/fetch-inputs.sh
index bbd2c88..65ebc11 100755
--- a/gitian/fetch-inputs.sh
+++ b/gitian/fetch-inputs.sh
@@ -253,7 +253,13 @@ cd ..
 git remote set-url origin https://git.torproject.org/builders/gitian-builder.git
 git fetch origin
 git fetch --tags origin # XXX - why do we fetch tags specifically?
-git checkout "$GITIAN_TAG"
+# If we're not verifying tags, then the branch requires an update.
+if [ $VERIFY_TAGS -eq 0 ];
+then
+  git pull
+else
+  git checkout "$GITIAN_TAG"
+fi
 cd inputs
 
 while read dir url tag; do



More information about the tor-commits mailing list