[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit a0c4b74b735e2e2c71bfe9054cde5085ca9033c7
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
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

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits