diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-09-06 04:33:41 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-09-06 04:33:41 +0300 |
commit | 56785a3fadcaa4de155457c8fa78318fc233d073 (patch) | |
tree | 603cadab651b5c7789ee5846b49c23d160365288 /t/helper | |
parent | 2d88021919cd3df3b9f9e8fc0f1cd3b5daf45432 (diff) | |
parent | ee69e7884e0cae3d2feabd5fcce8d3dfb44dda3a (diff) |
Merge branch 'bc/gc-crontab-fix'
FreeBSD portability fix for "git maintenance" that spawns "crontab"
to schedule tasks.
* bc/gc-crontab-fix:
gc: use temporary file for editing crontab
Diffstat (limited to 't/helper')
-rw-r--r-- | t/helper/test-crontab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-crontab.c b/t/helper/test-crontab.c index e7c0137a47..2942543046 100644 --- a/t/helper/test-crontab.c +++ b/t/helper/test-crontab.c @@ -17,8 +17,8 @@ int cmd__crontab(int argc, const char **argv) if (!from) return 0; to = stdout; - } else if (argc == 2) { - from = stdin; + } else if (argc == 3) { + from = fopen(argv[2], "r"); to = fopen(argv[1], "w"); } else return error("unknown arguments"); |