Skip to content

Commit 29033e5

Browse files
authored
[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
1 parent 9f2ab62 commit 29033e5

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)