summaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-20 16:29:59 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-20 16:29:59 -0700
commit099b74b4b267f72dfab916f28a0b17fceb293900 (patch)
treea11eb911392ccd33fa352b87f6e22eacabd9149f /alias.c
parentb7ef54f273bb9d7e49cb5f6b4cd1d7f552434fe1 (diff)
parent643df7e234dda47a4748311361a82df5415b7bc1 (diff)
downloadgit-099b74b4b267f72dfab916f28a0b17fceb293900.tar.gz
Merge branch 'js/alias-case-sensitivity'
A recent update broke an alias that contained an uppercase letter. * js/alias-case-sensitivity: alias: compare alias name *case-insensitively* t1300: demonstrate that CamelCased aliases regressed
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias.c b/alias.c
index 39f622e414..bf146e5263 100644
--- a/alias.c
+++ b/alias.c
@@ -11,7 +11,7 @@ static int config_alias_cb(const char *key, const char *value, void *d)
struct config_alias_data *data = d;
const char *p;
- if (skip_prefix(key, "alias.", &p) && !strcmp(p, data->alias))
+ if (skip_prefix(key, "alias.", &p) && !strcasecmp(p, data->alias))
return git_config_string((const char **)&data->v, key, value);
return 0;