Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ks/t7508-indent-fix' into maint
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index a30056ec7e9a0cca87dea494a92a4671a19b7643..f0511e58e2af4235201a01618134a020592cf11c 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-588,7
+588,8
@@
static int get_value(config_fn_t fn, void *data, struct strbuf *name)
*/
cf->linenr--;
ret = fn(name->buf, value, data);
- cf->linenr++;
+ if (ret >= 0)
+ cf->linenr++;
return ret;
}