sequencer: try to commit without forking 'git commit'
[gitweb.git] / builtin / rebase--helper.c
index f8519363a393862b6857acab037e74367c7f2134..68194d3aed950f327a8bc624fa1991478dfea01e 100644 (file)
@@ -9,6 +9,17 @@ static const char * const builtin_rebase_helper_usage[] = {
        NULL
 };
 
+static int git_rebase_helper_config(const char *k, const char *v, void *cb)
+{
+       int status;
+
+       status = git_sequencer_config(k, v, NULL);
+       if (status)
+               return status;
+
+       return git_default_config(k, v, NULL);
+}
+
 int cmd_rebase__helper(int argc, const char **argv, const char *prefix)
 {
        struct replay_opts opts = REPLAY_OPTS_INIT;
@@ -39,7 +50,7 @@ int cmd_rebase__helper(int argc, const char **argv, const char *prefix)
                OPT_END()
        };
 
-       git_config(git_default_config, NULL);
+       git_config(git_rebase_helper_config, NULL);
 
        opts.action = REPLAY_INTERACTIVE_REBASE;
        opts.allow_ff = 1;