tests: add a special setup where rebase.useBuiltin is off
[gitweb.git] / builtin / rebase.c
index 0ee06aa3631ee89761d570b433994cc77302742e..68ad8c1149191750b8ddcd97d489587780231830 100644 (file)
@@ -48,7 +48,10 @@ static int use_builtin_rebase(void)
 {
        struct child_process cp = CHILD_PROCESS_INIT;
        struct strbuf out = STRBUF_INIT;
-       int ret;
+       int ret, env = git_env_bool("GIT_TEST_REBASE_USE_BUILTIN", -1);
+
+       if (env != -1)
+               return env;
 
        argv_array_pushl(&cp.args,
                         "config", "--bool", "rebase.usebuiltin", NULL);