Skip to content

Commit

Permalink
Exclude 'fork' repos as an optimization. Set depth to 50 to recognize…
Browse files Browse the repository at this point in the history
… prior sync.
  • Loading branch information
jaraco committed Sep 27, 2022
1 parent 5026dad commit b1d0de3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaraco/develop/update-projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@contextlib.contextmanager
def temp_checkout(project):
with path.TempDir() as dir:
repo = git.checkout(project, dir, depth=1)
repo = git.checkout(project, dir, depth=50)
with repo:
yield

Expand All @@ -25,6 +25,8 @@ def is_skeleton():
def update_project(name):
if name == 'skeleton':
return
if 'fork' in name.tags:
return
print('\nupdating', name)
with temp_checkout(name):
if not is_skeleton():
Expand Down

0 comments on commit b1d0de3

Please sign in to comment.