Show More
@@ -791,7 +791,7 b' class GitRepository(BaseRepository):' | |||
|
791 | 791 | def _get_shadow_instance(self, shadow_repository_path, enable_hooks=False): |
|
792 | 792 | return GitRepository(shadow_repository_path) |
|
793 | 793 | |
|
794 | def _local_pull(self, repository_path, branch_name): | |
|
794 | def _local_pull(self, repository_path, branch_name, ff_only=True): | |
|
795 | 795 | """ |
|
796 | 796 | Pull a branch from a local repository. |
|
797 | 797 | """ |
@@ -802,7 +802,10 b' class GitRepository(BaseRepository):' | |||
|
802 | 802 | # conflicts with our current branch) |
|
803 | 803 | # Additionally, that option needs to go before --no-tags, otherwise git |
|
804 | 804 | # pull complains about it being an unknown flag. |
|
805 | cmd = ['pull', '--ff-only', '--no-tags', repository_path, branch_name] | |
|
805 | cmd = ['pull'] | |
|
806 | if ff_only: | |
|
807 | cmd.append('--ff-only') | |
|
808 | cmd.extend(['--no-tags', repository_path, branch_name]) | |
|
806 | 809 | self.run_git_command(cmd, fail_on_stderr=False) |
|
807 | 810 | |
|
808 | 811 | def _local_merge(self, merge_message, user_name, user_email, heads): |
@@ -915,6 +918,7 b' class GitRepository(BaseRepository):' | |||
|
915 | 918 | |
|
916 | 919 | pr_branch = shadow_repo._get_new_pr_branch( |
|
917 | 920 | source_ref.name, target_ref.name) |
|
921 | log.debug('using pull-request merge branch: `%s`', pr_branch) | |
|
918 | 922 | shadow_repo._checkout(pr_branch, create=True) |
|
919 | 923 | try: |
|
920 | 924 | shadow_repo._local_fetch(source_repo.path, source_ref.name) |
General Comments 0
You need to be logged in to leave comments.
Login now