Neels Hofmeyr | 9316ee7 | 2017-11-17 02:15:16 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
2 | |||||
3 | import sys | ||||
4 | import os | ||||
5 | import subprocess | ||||
6 | |||||
7 | git_subdirs = [] | ||||
8 | |||||
9 | for subdir in os.listdir(): | ||||
10 | if not os.path.isdir(os.path.join(subdir, '.git')): | ||||
11 | continue | ||||
12 | |||||
13 | print('\n===== %s =====' % subdir) | ||||
14 | sys.stdout.flush() | ||||
15 | subprocess.call(['git', '-C', subdir] + sys.argv[1:]) | ||||
16 | sys.stdout.flush() | ||||
17 | sys.stderr.flush() |