diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-05 14:49:49 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-05 14:49:49 -0700 |
commit | 188a634fec006a37489163b4bd36321d0a0ade77 (patch) | |
tree | 2b1a649c71b1e27e58675d6390b9387448dc0f40 /config.c | |
parent | Clarify git-cherry documentation. (diff) | |
parent | core.prefersymlinkrefs: use symlinks for .git/HEAD (diff) | |
download | tgif-188a634fec006a37489163b4bd36321d0a0ade77.tar.xz |
Merge branch 'fix'
* fix:
core.prefersymlinkrefs: use symlinks for .git/HEAD
repo-config: trim white-space before comment
Fix for config file section parsing.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -335,8 +335,9 @@ static int store_aux(const char* key, const char* value) store.offset[store.seen] = ftell(config_file); store.state = KEY_SEEN; store.seen++; - } else if(!strncmp(key, store.key, store.baselen)) - store.state = SECTION_SEEN; + } else if (strrchr(key, '.') - key == store.baselen && + !strncmp(key, store.key, store.baselen)) + store.state = SECTION_SEEN; } return 0; } |