diff options
-rw-r--r-- | src/config_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c index a594e51dd..aa9e83b9c 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -327,7 +327,7 @@ static int config_refresh(git_config_backend *cfg) uint32_t i; if (b->header.parent.readonly) - return 0; + return config_error_readonly(); error = config_is_modified(&modified, &b->file); if (error < 0 && error != GIT_ENOTFOUND) |