##// END OF EJS Templates
git: allow head command to not raise exception is we wish to have only return value.
marcink -
r504:caa31d8f default
parent child Browse files
Show More
@@ -526,9 +526,13 b' class GitRemote(object):'
526 return repo.refs.path
526 return repo.refs.path
527
527
528 @reraise_safe_exceptions
528 @reraise_safe_exceptions
529 def head(self, wire):
529 def head(self, wire, show_exc=True):
530 repo = self._factory.repo(wire)
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 @reraise_safe_exceptions
537 @reraise_safe_exceptions
534 def init(self, wire):
538 def init(self, wire):
General Comments 0
You need to be logged in to leave comments. Login now