diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-05-19 16:45:30 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-19 16:45:30 +0900 |
commit | 97616ca488ba460e20cbbb3374aabc97919b44ca (patch) | |
tree | 89f11f354d9f9c3e27d02fe2aa01c672655b26ec /builtin/show-ref.c | |
parent | 85ac27e04fd0cf1d086028e87f69ffb498c1451b (diff) | |
parent | 8e712ef6fc9742a9bf6f1826d81327f8da488041 (diff) | |
download | git-97616ca488ba460e20cbbb3374aabc97919b44ca.tar.gz |
Merge branch 'en/unicode-in-refnames'
On a filesystem like HFS+, the names of the refs stored as filesystem
entities may become different from what the end-user expects, just
like files in the working tree get "renamed". Work around the
mismatch by paying attention to the core.precomposeUnicode
configuration.
* en/unicode-in-refnames:
Honor core.precomposeUnicode in more places
Diffstat (limited to 'builtin/show-ref.c')
-rw-r--r-- | builtin/show-ref.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/show-ref.c b/builtin/show-ref.c index 6a706c02a6..6456da70cc 100644 --- a/builtin/show-ref.c +++ b/builtin/show-ref.c @@ -1,5 +1,6 @@ #include "builtin.h" #include "cache.h" +#include "config.h" #include "refs.h" #include "object-store.h" #include "object.h" @@ -182,6 +183,8 @@ static const struct option show_ref_options[] = { int cmd_show_ref(int argc, const char **argv, const char *prefix) { + git_config(git_default_config, NULL); + argc = parse_options(argc, argv, prefix, show_ref_options, show_ref_usage, 0); |