-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pencil in a special case for calendra.
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jaraco
Author
Owner
|
||
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'] | ||
|
How about making a project tag for similar cases in the future?