Skip to content

Commit bb6b406

Browse files
Srinath0916nemesifier
authored andcommitted
[fix] Fixed releaser to only commit tracked files #552
The releaser tool was using 'git add .' which dangerously adds all files including potentially private ones. Changed to only add files which are already tracked and modified during the release process. Fixes #552 (cherry picked from commit 29033e5)
1 parent b7d626b commit bb6b406

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openwisp_utils/releaser/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def main():
358358
["git", "checkout", "-b", release_branch], check=True, capture_output=True
359359
)
360360

361-
print("Adding all changed files to git...")
362-
subprocess.run(["git", "add", "."], check=True, capture_output=True)
361+
print("Adding tracked changes to git...")
362+
subprocess.run(["git", "add", "-u"], check=True, capture_output=True)
363363

364364
commit_message = f"{new_version} release"
365365
subprocess.run(

0 commit comments

Comments
 (0)