t6030: use $SHELL_PATH to invoke user's preferred shell instead of bare sh
[gitweb.git] / config.c
index 9340dfe5a831fb13c3a15a01976a22bb194eeb58..e42c59b190986d28ec535861e08b843739356b9a 100644 (file)
--- a/config.c
+++ b/config.c
@@ -47,8 +47,8 @@ void git_config_push_parameter(const char *text)
        strbuf_release(&env);
 }
 
-static int git_config_parse_parameter(const char *text,
-                                     config_fn_t fn, void *data)
+int git_config_parse_parameter(const char *text,
+                              config_fn_t fn, void *data)
 {
        struct strbuf **pair;
        pair = strbuf_split_str(text, '=', 2);
@@ -1499,10 +1499,10 @@ int git_config_rename_section(const char *old_name, const char *new_name)
                }
        }
        fclose(config_file);
- unlock_and_out:
+unlock_and_out:
        if (commit_lock_file(lock) < 0)
                ret = error("could not commit config file %s", config_filename);
- out:
+out:
        free(config_filename);
        return ret;
 }