Provide git_config with a callback-data parameter
[gitweb.git] / remote.c
index 91cbb72ddeba1c60dab7aad2105e1c004ea6e198..dff6c5f686d51a5352989ac2c395f387c1903491 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -288,7 +288,7 @@ static void read_branches_file(struct remote *remote)
        remote->fetch_tags = 1; /* always auto-follow */
 }
 
-static int handle_config(const char *key, const char *value)
+static int handle_config(const char *key, const char *value, void *cb)
 {
        const char *name;
        const char *subkey;
@@ -410,7 +410,7 @@ static void read_config(void)
                current_branch =
                        make_branch(head_ref + strlen("refs/heads/"), 0);
        }
-       git_config(handle_config);
+       git_config(handle_config, NULL);
        alias_all_urls();
 }