diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-04-08 11:00:32 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-04-08 11:00:32 +0200 |
commit | e9f8f159ebad405b2c08aa75f735146bb8e216ef (patch) | |
tree | fd09cabbbeb15291b26f5a7775c126ed2cbcabc7 /doc | |
parent | 723f100a422577235e06dc024a73285710770fca (diff) | |
download | gitpython-e9f8f159ebad405b2c08aa75f735146bb8e216ef.tar.gz |
fix(remote): allow to raise during push/fetch
Do not swallow non-zero exit status during push and fetch unless
we managed to parse head information.
This behaviour will effetively handle cases were no work was done
due to invalid refspecs or insufficient permissions.
Fixes #271
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/changes.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 52d70c0f..35c2f15c 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -7,6 +7,10 @@ Changelog * `IndexFile.add()` will now write the index without any extension data by default. However, you may override this behaviour with the new `write_extension_data` keyword argument. - Renamed `ignore_tree_extension_data` keyword argument in `IndexFile.write(...)` to `ignore_extension_data` +* If the git command executed during `Remote.push(...)|fetch(...)` returns with an non-zero exit code and GitPython didn't + obtain any head-information, the corresponding `GitCommandError` will be raised. This may break previous code which expected + these operations to never raise. However, that behavious is undesirable as it would effectively hide the fact that there + was an error. See `this issue <https://github.com/gitpython-developers/GitPython/issues/271>`_ for more information. 0.3.6 - Features ================ |