Skip to content

Commit baa2f6f

Browse files
[Enabler][1725]Allow_run_dependency_finder_with_other_command (#2138)
* Allow run dependency finder with other command * Add fragment
1 parent 2981c56 commit baa2f6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trivial:
2+
- test/dependencyfinder.py - Updated use of git command to run a base command of git library.
3+
(https://github.com/ansible-collections/ibm_zos_core/pull/2138)

tests/dependencyfinder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,9 @@ def get_changed_plugins(path, branch="origin/dev"):
545545
current_branch_name = current_branch_name.rstrip()
546546

547547
branch = branch.rstrip()
548+
diff_branches = f"{branch}..{current_branch_name}"
548549
get_diff_pr = subprocess.Popen(
549-
["git", "request-pull", branch, "[email protected]:ansible-collections/ibm_zos_core.git", current_branch_name],
550+
["git", "diff", "--name-status", diff_branches],
550551
stdout=subprocess.PIPE,
551552
stderr=subprocess.PIPE,
552553
cwd=path,

0 commit comments

Comments
 (0)