-#!/usr/bin/python3
+#!/usr/bin/env python3
# Copyright (c) 2015, Ralf Jung <post@ralfj.de>
# All rights reserved.
#
repo = repos[reponame]
# parse the information we get from stdin. we trust this information.
for line in sys.stdin:
- (oldsha, newsha, ref) = line.split()
+ line = line.split()
+ if len(line) == 0: continue
+ assert len(line) == 3
+ (oldsha, newsha, ref) = line
repo.update_mirrors(ref, oldsha, newsha)
except Exception as e:
if repo is not None: