Skip to content

Commit 6639de2

Browse files
Fix bug in merge subcommand due to removed method is_remote_tracking_branch()
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 7030163 commit 6639de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_sim/merge.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def construct(self):
6060
head_commit = self.get_commit()
6161
branch_commit = self.get_commit(self.branch)
6262

63-
if not self.is_remote_tracking_branch(self.branch):
63+
if self.branch not in self.get_remote_tracking_branches():
6464
if self.branch in self.repo.git.branch("--contains", head_commit.hexsha):
6565
self.ff = True
6666
else:

0 commit comments

Comments
 (0)