Permalink
Browse files

make git remote update time out after 60 seconds

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information...
1 parent 912add1 commit 65a6317dd153d1c7074527718f1c49ee2858c741 @liewegas liewegas committed with Tommi Virtanen Feb 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 autobuilder.sh
View
@@ -33,8 +33,8 @@ chmod a+w out/errcache
did_something=1
while [ -n "$did_something" ]; do
( cd build &&
- git remote show | xargs git remote prune &&
- git remote update )
+ git remote show | timeout 60 xargs git remote prune &&
+ timeout 60 git remote update )
did_something=
for branch in $(./branches.sh); do
ref=$(./next-rev.sh $branch)

0 comments on commit 65a6317

Please sign in to comment.