Skip to content

Commit

Permalink
- don't call "git add" if the --no-commit flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Oct 5, 2023
1 parent 4a6085d commit a361e1f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/config-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ def configure(self):
with change_dir(self.path):
# We have to add it here otherwise the linter complains
# that it is not added.
call('git', 'add', 'CONTRIBUTING.md')
if self.args.commit:
call('git', 'add', 'CONTRIBUTING.md')

self.coveragerc()
self.manylinux_sh()
Expand All @@ -606,13 +607,13 @@ def configure(self):
call('git', 'rm', '.travis.yml')
if self.rm_coveragerc:
call('git', 'rm', '.coveragerc')
if self.add_coveragerc:
if self.add_coveragerc and self.args.commit:
call('git', 'add', '.coveragerc')
if self.with_appveyor:
if self.with_appveyor and self.args.commit:
call('git', 'add', 'appveyor.yml')
if self.with_docs:
if self.with_docs and self.args.commit:
call('git', 'add', '.readthedocs.yaml')
if self.add_manylinux:
if self.add_manylinux and self.args.commit:
call('git', 'add', '.manylinux.sh', '.manylinux-install.sh')
# Remove empty sections:
meta_cfg = {k: v for k, v in self.meta_cfg.items() if v}
Expand Down

0 comments on commit a361e1f

Please sign in to comment.