diff options
| author | Russell Belfer <rb@github.com> | 2013-10-09 11:57:03 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-10-09 11:57:03 -0700 |
| commit | 743531372a00e41246026910e2361684e2aad59f (patch) | |
| tree | 7cf6f67ef00431f308210cf5c0e5193a7988d767 | |
| parent | 95c148b2c772b5f97e0db60bff089d8fa944971c (diff) | |
| download | libgit2-743531372a00e41246026910e2361684e2aad59f.tar.gz | |
After iconv init reset ref normalize error
The iconv init was accidentally clearing the default error state
during reference normalization. This resets so that normalization
errors will be detected correctly.
| -rw-r--r-- | src/refs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/refs.c b/src/refs.c index 0da02a666..7530aeef9 100644 --- a/src/refs.c +++ b/src/refs.c @@ -755,6 +755,7 @@ int git_reference__normalize_name( if ((error = git_path_iconv_init_precompose(&ic)) < 0 || (error = git_path_iconv(&ic, ¤t, &namelen)) < 0) goto cleanup; + error = GIT_EINVALIDSPEC; } while (true) { |
