[tbb-commits] [tor-browser-bundle/master] Prune dead tags during git fetch.
mikeperry at torproject.org
mikeperry at torproject.org
Thu May 29 20:30:21 UTC 2014
commit 7d83e0fbd397c58013692f0db36c0532b2bfebaa
Author: Mike Perry <mikeperry-git at torproject.org>
Date: Thu May 29 13:27:20 2014 -0700
Prune dead tags during git fetch.
fteproxy created and removed some crazy branches that managed to break git
updates without a prune step.
---
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 9aff99d..34e8727 100755
--- a/gitian/fetch-inputs.sh
+++ b/gitian/fetch-inputs.sh
@@ -90,7 +90,7 @@ update_git() {
if [ -d "$dir/.git" ];
then
- (cd "$dir" && git remote set-url origin $url && git fetch origin && git fetch --tags origin)
+ (cd "$dir" && git remote set-url origin $url && git fetch --prune origin && git fetch --prune --tags origin)
else
if ! git clone "$url"; then
echo >&2 "Error: Cloning $url failed"
More information about the tbb-commits
mailing list