Skip to content

Commit

Permalink
Pencil in a special case for calendra.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 10, 2024
1 parent 2b388f0 commit 09d7ab5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jaraco/develop/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ def target_for_root(project, root: path.Path = path.Path()):


def configure_fork(project, repo):
# special case for calendra - make sure not to fetch tags from upstream.

This comment has been minimized.

Copy link
@bswck

bswck Feb 10, 2024

Contributor

How about making a project tag for similar cases in the future?

This comment has been minimized.

Copy link
@jaraco

jaraco Feb 29, 2024

Author Owner

That seems like a sound idea. I'm unsure how to model it. I'll open an issue to track.

if project == 'calendra':
cmd = 'git config remote.upstream.tagOpt --no-tags'.split()
subprocess.check_output(cmd, cwd=repo)

if 'fork' not in project.tags:
return
cmd = ['gh', 'repo', 'fork', '--remote']
Expand Down

0 comments on commit 09d7ab5

Please sign in to comment.