Skip to content

Commit edb651a

Browse files
committed
bug fix and make code easy to use
1 parent 91ed975 commit edb651a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

functions/git/update_git_repos_by_pull.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def run_workload(path):
9191

9292

9393
git_top_directory = r'D:\GitHub'
94-
git_repos_list = [os.path.join(git_top_directory, x) for x in os.listdir(git_top_directory)]
94+
git_repos_list = [os.path.join(git_top_directory, x) for x in os.listdir(git_top_directory) if
95+
os.path.isdir(os.path.join(git_top_directory, x))]
9596

9697
if __name__ == '__main__':
9798
pool = Pool(4) # 4 CPU cores

0 commit comments

Comments
 (0)