Show More
@@ -526,9 +526,13 b' class GitRemote(object):' | |||
|
526 | 526 | return repo.refs.path |
|
527 | 527 | |
|
528 | 528 | @reraise_safe_exceptions |
|
529 | def head(self, wire): | |
|
529 | def head(self, wire, show_exc=True): | |
|
530 | 530 | repo = self._factory.repo(wire) |
|
531 | return repo.head() | |
|
531 | try: | |
|
532 | return repo.head() | |
|
533 | except Exception: | |
|
534 | if show_exc: | |
|
535 | raise | |
|
532 | 536 | |
|
533 | 537 | @reraise_safe_exceptions |
|
534 | 538 | def init(self, wire): |
General Comments 0
You need to be logged in to leave comments.
Login now