From ef27539ad71977b06683bbc304760f366ed4199e Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 18 Jun 2016 19:02:17 -0400 Subject: Add --prune to fetch commands; track (old) HTTPS configuration changes; general cleanup. --- what-branches.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'what-branches.py') 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 -- cgit v1.2.3