##// END OF EJS Templates
git: enable unreachable commits search
marcink -
r848:b44073c0 default
parent child Browse files
Show More
@@ -687,7 +687,7 b' class GitRemote(RemoteBase):'
687 687 return revs
688 688
689 689 @reraise_safe_exceptions
690 def get_object(self, wire, sha):
690 def get_object(self, wire, sha, maybe_unreachable=False):
691 691 cache_on, context_uid, repo_id = self._cache_on(wire)
692 692 @self.region.conditional_cache_on_arguments(condition=cache_on)
693 693 def _get_object(_context_uid, _repo_id, _sha):
@@ -714,6 +714,9 b' class GitRemote(RemoteBase):'
714 714 if is_tag:
715 715 check_dangling = False
716 716
717 if check_dangling and maybe_unreachable:
718 check_dangling = False
719
717 720 # we used a reference and it parsed means we're not having a dangling commit
718 721 if sha != commit.hex:
719 722 check_dangling = False
General Comments 0
You need to be logged in to leave comments. Login now