From d60562ddf12342efb11f4766895dfc254a06f220 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Sun, 3 Apr 2016 22:29:34 +0000 Subject: morphlib/gitdir: Recover CheckoutError It was removed by mistake in 014a029ade9a045a839ca86c35690b218098ea33 Change-Id: I766f39f09444a66234ce3bdcb9134e592d5363ce --- morphlib/gitdir.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py index 24dd9ed7..e2ea5f4d 100644 --- a/morphlib/gitdir.py +++ b/morphlib/gitdir.py @@ -143,6 +143,14 @@ class PushFailureError(PushError): 'stderr: %(stderr)s' % locals()) +class CheckoutError(cliapp.AppException): + + def __init__(self, repo, ref, target_dir): # pragma: no cover + cliapp.AppException.__init__( + self, + 'Failed to check out ref %s in %s' % (ref, target_dir)) + + class Config(object): '''Class representing Git repo configuration. -- cgit v1.2.1