Skip to content

Commit

Permalink
final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuqi WANG authored and Yuqi WANG committed Jun 7, 2024
1 parent 841e879 commit 845dd60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helpers/GitHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def push_changes_in_pull_request(self, repository, message, target_branch, head_
r.git.execute(['git', 'config', '--global', '--add', 'safe.directory', clone_path])
r.git.execute(['git', 'checkout', '-b', target_branch])
files_to_add = r.git.execute(
['git', 'ls-files', '--others', '--exclude-standard', 'grep', '\\\.java', '|', 'grep', 'src/test'])
r.git.execute(['git', 'add', files_to_add])
['git', 'ls-files', '--others', '--exclude-standard', 'grep', '\\.java', '|', 'grep', 'src/test'])
files_to_add = files_to_add.split("\n")
for file in files_to_add:
r.git.execute(['git', 'add', file])
r.git.commit('-am', message)
r.git.push('origin', target_branch)

Expand Down

0 comments on commit 845dd60

Please sign in to comment.