blob: 0c36467bc53ce98529cc785c40b780f54a332f50 (
plain) (
tree)
|
|
#!/usr/bin/env python
#
# List rmotes in local repository tree.
from subprocess import check_output
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", "remote", "-v"), cwd = head).splitlines():
print(" ", line)
|