mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-01-24 15:19:04 +01:00
Don't catch all exceptions in export_ref()
Just in case. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -493,7 +493,7 @@ def export_ref(repo, name, kind, head):
|
||||
try:
|
||||
tip = marks.get_tip(ename)
|
||||
tip = repo[tip]
|
||||
except:
|
||||
except (KeyError,error.RepoLookupError):
|
||||
tip = repo[-1]
|
||||
|
||||
revs = gitrange(repo, tip, head)
|
||||
|
||||
Reference in New Issue
Block a user