Pārlūkot izejas kodu

update repositories recursively int sub directories.

pull/42/head
weifengding pirms 6 gadiem
vecāks
revīzija
b76f26de24
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      gitup/update.py

+ 5
- 0
gitup/update.py Parādīt failu

@@ -200,6 +200,11 @@ def _dispatch_multi(base, paths, callback, *args):
try:
Repo(path)
except (exc.InvalidGitRepositoryError, exc.NoSuchPathError):
if os.path.isdir(path):
sub_paths = [os.path.join(path, item) for item in os.listdir(path)]
_dispatch_multi(path, sub_paths, callback, *args)
else:
print(ERROR, BOLD + path, "isn't a repository!")
continue
valid.append(path)



Notiek ielāde…
Atcelt
Saglabāt