diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 14:43:47 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 17:13:22 +0200 |
commit | f11fdf1d9d22a198511b02f3ca90146cfa5deb5c (patch) | |
tree | b8b902a555a6626294bd9388ff1bef11abef39e3 /git/test | |
parent | cf2335af23fb693549d6c4e72b65f97afddc5f64 (diff) | |
download | gitpython-f11fdf1d9d22a198511b02f3ca90146cfa5deb5c.tar.gz |
remote, #519: FIX1-of-2 double-decoding push-infos
+ When `universal_lines==True` (515a6b9ccf8) must tel
`handle_process_output` to stop decoding strings.
Diffstat (limited to 'git/test')
-rw-r--r-- | git/test/lib/helper.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index 6d840027..949e474f 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -258,8 +258,10 @@ def with_rw_and_rw_remote_repo(working_tree_ref): # We assume in good faith that we didn't start the daemon - but make sure we kill it anyway # Of course we expect it to work here already, but maybe there are timing constraints # on some platforms ? - if gd is not None: + try: gd.proc.terminate() + except Exception as ex: + log.debug("Ignoring %r while terminating proc after %r.", ex, e) log.warning('git(%s) ls-remote failed due to:%s', rw_repo.git_dir, e) if is_win: @@ -296,8 +298,10 @@ def with_rw_and_rw_remote_repo(working_tree_ref): os.chdir(prev_cwd) finally: - if gd is not None: + try: gd.proc.kill() + except: + pass ## Either it has died (and we're here), or it won't die, again here... rw_repo.git.clear_cache() rw_remote_repo.git.clear_cache() |