diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2015-05-14 12:54:39 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2015-05-28 09:43:53 -0400 |
| commit | 3ab5a65967b2007e200be4925781583880e5b938 (patch) | |
| tree | dbef104bf823fb8c737e828149bb21b5621a831f | |
| parent | ecd60a56ebd6bdc347a486f53da7de0febef58cf (diff) | |
| download | libgit2-3ab5a65967b2007e200be4925781583880e5b938.tar.gz | |
index: remove error message in non-error remove
If `git_index_remove_bypath` does no work, and returns an OK error
code, it should not set an error message.
| -rw-r--r-- | src/index.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 19432b18c..b39c0893d 100644 --- a/src/index.c +++ b/src/index.c @@ -1173,6 +1173,9 @@ int git_index_remove_bypath(git_index *index, const char *path) ret != GIT_ENOTFOUND)) return ret; + if (ret == GIT_ENOTFOUND) + giterr_clear(); + return 0; } |
