Merge branch 'fix'

* fix:
  core.prefersymlinkrefs: use symlinks for .git/HEAD
  repo-config: trim white-space before comment
  Fix for config file section parsing.
This commit is contained in:
Junio C Hamano 2006-05-05 14:49:49 -07:00
commit 188a634fec

View File

@ -335,7 +335,8 @@ static int store_aux(const char* key, const char* value)
store.offset[store.seen] = ftell(config_file); store.offset[store.seen] = ftell(config_file);
store.state = KEY_SEEN; store.state = KEY_SEEN;
store.seen++; store.seen++;
} else if(!strncmp(key, store.key, store.baselen)) } else if (strrchr(key, '.') - key == store.baselen &&
!strncmp(key, store.key, store.baselen))
store.state = SECTION_SEEN; store.state = SECTION_SEEN;
} }
return 0; return 0;