Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Nov 11, 2023
1 parent 35b439b commit eadf620
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev180"
version = "0.0.0.dev181"
name = "RepoDynamics"
dependencies = [
"packaging >= 23.2, < 24",
Expand Down
2 changes: 2 additions & 0 deletions src/repodynamics/actions/events/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def _run_labeled_status_in_dev(self):
base_sha=branch_sha[base_branch_name],
name=head_branch_name,
)
# Create empty commit on dev branch to be able to open a draft pull request
# Ref: https://stackoverflow.com/questions/46577500/why-cant-i-create-an-empty-pull-request-for-discussion-prior-to-developing-chan
self._git_target.fetch_remote_branches_by_name(branch_names=head_branch_name)
self._git_target.checkout(head_branch_name)
self._git_target.commit(
Expand Down
4 changes: 2 additions & 2 deletions src/repodynamics/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def fetch_remote_branches_by_name(
f"{'+' if not_fast_forward_ok else ''}{branch_name}:{branch_name}" for branch_name in branch_names
]
self._run(["git", "fetch", remote_name, *refspecs])
for branch_name in branch_names:
self._run(["git", "branch", "--track", branch_name, f"{remote_name}/{branch_name}"])
# for branch_name in branch_names:
# self._run(["git", "branch", "--track", branch_name, f"{remote_name}/{branch_name}"])
# self._run(["git", "fetch", "--all"])
# self._run(["git", "pull", "--all"])
return
Expand Down

0 comments on commit eadf620

Please sign in to comment.