try:
git_tags = subprocess.check_output(
['git', 'log', '--first-parent', '--max-count=1',
- '--format=format:%ct %h', SETUP_DIR]).split()
+ '--format=format:%ct %h', SETUP_DIR],
+ stderr=open('/dev/null','w')).split()
assert len(git_tags) == 2
except (AssertionError, OSError, subprocess.CalledProcessError):
pass