Index: git_cl.py |
diff --git a/git_cl.py b/git_cl.py |
index 1a1c64847f26c098dd292278249108de56e42980..32862686c0370439ef67371c910b551095f29f8b 100755 |
--- a/git_cl.py |
+++ b/git_cl.py |
@@ -1255,7 +1255,17 @@ def CMDstatus(parser, args): |
color = Fore.BLUE |
output.put((b, i, color)) |
- threads = [threading.Thread(target=fetch, args=(b,)) for b in branches] |
+ # Process one branch synchronously to work through authentication, then |
+ # spawn threads to process all the other branches in parallel. |
+ first_branch = True |
+ threads = [] |
+ for b in branches: |
+ if first_branch: |
+ fetch(b) |
+ first_branch = False |
+ else: |
+ threads.append(threading.Thread(target=fetch, args=(b,))) |
iannucci
2014/03/26 23:34:26
why not
if branches:
fetch(branches[0])
threa
Jason Robbins -- corp
2014/03/26 23:43:07
I had it that way until I realized that branches i
|
+ |
for t in threads: |
t.daemon = True |
t.start() |