[PATCH 13/13] git-remote-testgit: fix error handling
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Aug 29, 2010, 03:45 UTC
- Message-ID
- <1283053540-27042-14-git-send-email-srabbelier@gmail.com>
- In-Reply-To
- <1283053540-27042-1-git-send-email-srabbelier@gmail.com>
If fast-export did not complete successfully the error handling code itself would error out. ---
*brown paper bag*
git_remote_helpers/git/importer.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/git_remote_helpers/git/importer.py b/git_remote_helpers/git/importer.py index 70a7127..d938611 100644 --- a/git_remote_helpers/git/importer.py +++ b/git_remote_helpers/git/importer.py @@ -36,5 +36,6 @@ class GitImporter(object): args.append("--import-marks=" + path) child = subprocess.Popen(args) - if child.wait() != 0: - raise CalledProcessError + ret = child.wait() + if ret != 0: + raise subprocess.CalledProcessError(ret, args)
-- 1.7.2.1.240.g6a95c3