diff options
author | Rob Austein <sra@hactrn.net> | 2016-06-18 19:02:17 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-06-18 19:02:17 -0400 |
commit | ef27539ad71977b06683bbc304760f366ed4199e (patch) | |
tree | 86e66ba6003fb1e88d879300a7c826fbd1722fa4 /what-branches.py | |
parent | 6b1074775e5f62541a31240e8abf44b5cd95b700 (diff) |
Add --prune to fetch commands; track (old) HTTPS configuration changes; general cleanup.
Diffstat (limited to 'what-branches.py')
-rwxr-xr-x | what-branches.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/what-branches.py b/what-branches.py index 203b3d2..56e2082 100755 --- a/what-branches.py +++ b/what-branches.py @@ -7,8 +7,8 @@ from os import walk, listdir from sys import argv for root in argv[1:] or listdir("."): - for head, dirs, files in walk(root): - if ".git" in dirs and not head.endswith("/gitolite"): - print head - for line in check_output(("git", "branch", "-a"), cwd = head).splitlines(): - print " ", line + for head, dirs, files in walk(root): + if ".git" in dirs and not head.endswith("/gitolite"): + print head + for line in check_output(("git", "branch", "-a"), cwd = head).splitlines(): + print " ", line |