##// END OF EJS Templates
git: use force branch checkout to prevent cases when .gitattributes modifies...
marcink -
r2502:9f2d0b54 default
parent child Browse files
Show More
@@ -900,10 +900,10 b' class GitRepository(BaseRepository):'
900 # fetch proper commits for merge testing
900 # fetch proper commits for merge testing
901 if source_ref.name != target_ref.name:
901 if source_ref.name != target_ref.name:
902 if shadow_repo.get_remote_ref(source_ref.name):
902 if shadow_repo.get_remote_ref(source_ref.name):
903 shadow_repo._checkout(source_ref.name)
903 shadow_repo._checkout(source_ref.name, force=True)
904
904
905 # checkout target
905 # checkout target
906 shadow_repo._checkout(target_ref.name)
906 shadow_repo._checkout(target_ref.name, force=True)
907 shadow_repo._local_pull(self.path, target_ref.name)
907 shadow_repo._local_pull(self.path, target_ref.name)
908
908
909 # Need to reload repo to invalidate the cache, or otherwise we cannot
909 # Need to reload repo to invalidate the cache, or otherwise we cannot
General Comments 0
You need to be logged in to leave comments. Login now