[PATCH 09/19] git-remote-testgit: fix error handling
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Jun 8, 2011, 18:48 UTC
- Message-ID
- <1307558930-16074-10-git-send-email-srabbelier@gmail.com>
- In-Reply-To
- <1307558930-16074-1-git-send-email-srabbelier@gmail.com>
If fast-export did not complete successfully the error handling code itself would error out.
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> ---
Moved to the front for bisectability.
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.5.1.292.g728120