Skip to content

Commit b607b01

Browse files
committed
Change release command to call git directly
Otherwise it will bypass some configuration options in the system, specially autocrlf option which will mess up line endinds on Windows :/
1 parent b22cf1c commit b607b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def pre_release(version):
3737
"""Generates new docs, release announcements and creates a local tag."""
3838
repo = create_branch(version)
3939
changelog(version, write_out=True)
40-
repo.index.add(['CHANGELOG.rst', 'changelog'])
41-
repo.index.commit(f"Preparing release {version}")
40+
41+
check_call(['git', 'commit', '-a', '-m', f"Preparing release {version}"])
4242

4343
print()
4444
print(f"{Fore.GREEN}Please push your branch to your fork and open a PR.")

0 commit comments

Comments
 (0)