]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/gc.c
The fifth batch
[thirdparty/git.git] / builtin / gc.c
index d187cec1ea7550aa237cc2d6c86975c865457a21..054fca783561840d995785dcd05fc3d436eff922 100644 (file)
@@ -907,7 +907,8 @@ static int should_write_commit_graph(void)
        if (data.limit < 0)
                return 1;
 
-       result = for_each_ref(dfs_on_ref, &data);
+       result = refs_for_each_ref(get_main_ref_store(the_repository),
+                                  dfs_on_ref, &data);
 
        repo_clear_commit_marks(the_repository, SEEN);
 
@@ -1870,6 +1871,7 @@ static int launchctl_schedule_plist(const char *exec_path, enum schedule_priorit
                   "<string>%s/git</string>\n"
                   "<string>--exec-path=%s</string>\n"
                   "<string>for-each-repo</string>\n"
+                  "<string>--keep-going</string>\n"
                   "<string>--config=maintenance.repo</string>\n"
                   "<string>maintenance</string>\n"
                   "<string>run</string>\n"
@@ -2112,7 +2114,7 @@ static int schtasks_schedule_task(const char *exec_path, enum schedule_priority
              "<Actions Context=\"Author\">\n"
              "<Exec>\n"
              "<Command>\"%s\\headless-git.exe\"</Command>\n"
-             "<Arguments>--exec-path=\"%s\" for-each-repo --config=maintenance.repo maintenance run --schedule=%s</Arguments>\n"
+             "<Arguments>--exec-path=\"%s\" for-each-repo --keep-going --config=maintenance.repo maintenance run --schedule=%s</Arguments>\n"
              "</Exec>\n"
              "</Actions>\n"
              "</Task>\n";
@@ -2257,7 +2259,7 @@ static int crontab_update_schedule(int run_maintenance, int fd)
                        "# replaced in the future by a Git command.\n\n");
 
                strbuf_addf(&line_format,
-                           "%%d %%s * * %%s \"%s/git\" --exec-path=\"%s\" for-each-repo --config=maintenance.repo maintenance run --schedule=%%s\n",
+                           "%%d %%s * * %%s \"%s/git\" --exec-path=\"%s\" for-each-repo --keep-going --config=maintenance.repo maintenance run --schedule=%%s\n",
                            exec_path, exec_path);
                fprintf(cron_in, line_format.buf, minute, "1-23", "*", "hourly");
                fprintf(cron_in, line_format.buf, minute, "0", "1-6", "daily");
@@ -2458,7 +2460,7 @@ static int systemd_timer_write_service_template(const char *exec_path)
               "\n"
               "[Service]\n"
               "Type=oneshot\n"
-              "ExecStart=\"%s/git\" --exec-path=\"%s\" for-each-repo --config=maintenance.repo maintenance run --schedule=%%i\n"
+              "ExecStart=\"%s/git\" --exec-path=\"%s\" for-each-repo --keep-going --config=maintenance.repo maintenance run --schedule=%%i\n"
               "LockPersonality=yes\n"
               "MemoryDenyWriteExecute=yes\n"
               "NoNewPrivileges=yes\n"