Skip to content

Commit

Permalink
Fix bug in merge subcommand due to removed method is_remote_tracking_…
Browse files Browse the repository at this point in the history
…branch()

Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
  • Loading branch information
initialcommit-io committed Jun 12, 2023
1 parent 7030163 commit 6639de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_sim/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def construct(self):
head_commit = self.get_commit()
branch_commit = self.get_commit(self.branch)

if not self.is_remote_tracking_branch(self.branch):
if self.branch not in self.get_remote_tracking_branches():
if self.branch in self.repo.git.branch("--contains", head_commit.hexsha):
self.ff = True
else:
Expand Down

0 comments on commit 6639de2

Please sign in to comment.