[Bug 260746] Command 'git maintenance start' fails with 'file name must be specified for replace'

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Dec 2021 04:59:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260746

            Bug ID: 260746
           Summary: Command 'git maintenance start' fails with 'file name
                    must be specified for replace'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mark.earl.waite@gmail.com

Beginning with git 2.30.0, the 'maintenance' command has been added.  It allows
a user to schedule regular updates in a git repository using the system
scheduler.

The command 'git maintenance start' schedules periodic execution of repository
updates.  Unfortunately, when I use that command with git 2.34.1 on FreeBSD
12.3-RELEASE and FreeBSD 13.0-RELEASE-p5, it reports the error:

crontab: no crontab for mwaite
crontab: usage error: file name must be specified for replace
usage: crontab [-u user] file
       crontab [-u user] { -l | -r [-f] | -e }
error: 'crontab' died

The commands to duplicate the problem are:

$ TMPDIR=`mktemp -d`
$ cd $TMPDIR
$ git clone https://github.com/jenkinsci/elastic-axis-plugin.git
$ cd elastic-axis-plugin
$ git maintenance start

-- 
You are receiving this mail because:
You are the assignee for the bug.