Show More
@@ -692,10 +692,20 b' class GitRemote(RemoteBase):' | |||
|
692 | 692 | commit = repo.get(commit.target) |
|
693 | 693 | is_tag = True |
|
694 | 694 | |
|
695 | if not is_tag: | |
|
695 | check_dangling = True | |
|
696 | if is_tag: | |
|
697 | check_dangling = False | |
|
698 | ||
|
699 | # we used a reference and it parsed means we're not having a dangling commit | |
|
700 | if sha != commit.hex: | |
|
701 | check_dangling = False | |
|
702 | ||
|
703 | if check_dangling: | |
|
696 | 704 | # check for dangling commit |
|
697 |
|
|
|
698 |
if |
|
|
705 | for branch in repo.branches.with_commit(commit.hex): | |
|
706 | if branch: | |
|
707 | break | |
|
708 | else: | |
|
699 | 709 | raise exceptions.LookupException(None)(missing_commit_err) |
|
700 | 710 | |
|
701 | 711 | commit_id = commit.hex |
General Comments 0
You need to be logged in to leave comments.
Login now