[tbb-commits] [tor-browser-bundle/master] fetch-inputs.sh: checkout git repositories with -f

boklm at torproject.org boklm at torproject.org
Thu Apr 21 21:08:29 UTC 2016


commit 3fbe2d1801286eefceb1d83dfab4e6b62d38c720
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Thu Apr 21 23:00:28 2016 +0200

    fetch-inputs.sh: checkout git repositories with -f
    
    Update git repositories using "git checkout -f" to throw away local
    changes.
    
    This avoids an error when updating https-everywhere where a submodule
    was merged to the main repository.
---
 gitian/fetch-inputs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gitian/fetch-inputs.sh b/gitian/fetch-inputs.sh
index b423b48..da487f4 100755
--- a/gitian/fetch-inputs.sh
+++ b/gitian/fetch-inputs.sh
@@ -100,7 +100,7 @@ update_git() {
   fi
 
   if [ -n "$tag" ]; then
-    (cd "$dir" && git checkout "$tag")
+    (cd "$dir" && git checkout -f "$tag")
   fi
 
   # If we're not verifying tags, then some of the tags



More information about the tbb-commits mailing list