[tor-commits] [gettor/master] Ensure failure is declared before referenced
cohosh at torproject.org
cohosh at torproject.org
Thu Jan 23 16:41:47 UTC 2020
commit 5404ef818317f0c0ceea6a6130f83ccc8d070fd7
Author: Cecylia Bocovich <cohosh at torproject.org>
Date: Thu Jan 23 09:14:15 2020 -0500
Ensure failure is declared before referenced
This fixes a bug where, if there were no errors in uploading binaries,
failure is referenced before it was ever declared.
---
scripts/update_git | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/update_git b/scripts/update_git
index d107491..5808139 100755
--- a/scripts/update_git
+++ b/scripts/update_git
@@ -109,6 +109,9 @@ def upload_files(remotes):
for remote in remotes:
remote.upload(filename, arch)
os.remove(filename)
+
+ failure = False
+
#Retry failed uploads
for url in failed_uploads:
filename = url.split('/')[-1]
More information about the tor-commits
mailing list