* A previous version of Git wrote the timer units as template files. * Clean these up, if they exist. */
| 3191 | * Clean these up, if they exist. |
| 3192 | */ |
| 3193 | static void systemd_timer_delete_stale_timer_templates(void) |
| 3194 | { |
| 3195 | char *timer_template_name = xstrfmt(SYSTEMD_UNIT_FORMAT, "", "timer"); |
| 3196 | char *filename = xdg_config_home_systemd(timer_template_name); |
| 3197 | |
| 3198 | if (unlink(filename) && !is_missing_file_error(errno)) |
| 3199 | warning(_("failed to delete '%s'"), filename); |
| 3200 | |
| 3201 | free(filename); |
| 3202 | free(timer_template_name); |
| 3203 | } |
| 3204 | |
| 3205 | static int systemd_timer_delete_unit_files(void) |
| 3206 | { |
no test coverage detected