diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-04-03 22:29:34 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-04-04 11:27:57 +0000 |
commit | d60562ddf12342efb11f4766895dfc254a06f220 (patch) | |
tree | 746bc1a41cbd25189b7198dc68d7ff428f3fd465 | |
parent | b1d2bd3308e5e99c72d1d56a1a03ed4de0b76de0 (diff) | |
download | morph-d60562ddf12342efb11f4766895dfc254a06f220.tar.gz |
morphlib/gitdir: Recover CheckoutError
It was removed by mistake in 014a029ade9a045a839ca86c35690b218098ea33
Change-Id: I766f39f09444a66234ce3bdcb9134e592d5363ce
-rw-r--r-- | morphlib/gitdir.py | 8 |
1 files changed, 8 insertions, 0 deletions
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. |