瀏覽代碼

process directories recursively

pull/41/head
dingweifeng 6 年之前
父節點
當前提交
8793d86d39
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      gitup/update.py

+ 5
- 0
gitup/update.py 查看文件

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



Loading…
取消
儲存