From: Clement Moyroud <clement.moyroud@gmail.com>
To: git@vger.kernel.org
Subject: 'git maintenance' won't work on bare repos
Date: Mon, 22 Feb 2021 18:01:24 -0800 [thread overview]
Message-ID: <CABXAcUzRhkeQhVtwtx-NBR0hbkoo=aCTwN464Dsj8680GPMDxw@mail.gmail.com> (raw)
Hello,
Because we have a fairly large repository, our developers rely on
worktrees created off a bare mirror clone. I'd like to enable
maintenance, and since the worktrees are rather short-lived instances,
we cannot point 'git maintenance' to it.
So the proper solution is to do it from the bare clone itself.
However, 'git maintenance register' silently fails (with an 0 exit
code). There are two tell-tale signs:
1. 'git config --global --get maintenance.repo' returns '.'
2. There are no Crontab entries inserted.
Running 'git maintenance register' from a worktree created off the
bare clone works as expected.
To reproduce:
git init --bare test-me
git -C test-me maintenance register
git config --global --get maintenance.repo
The workaround, for now, is to run this from a worktree, then use 'git
config' to reset to the corresponding bare clone location.
Thanks,
Clément
next reply other threads:[~2021-02-23 2:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 2:01 Clement Moyroud [this message]
2021-02-23 5:03 ` 'git maintenance' won't work on bare repos Eric Sunshine
2021-02-23 7:36 ` Eric Sunshine
2021-02-23 15:31 ` Clement Moyroud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABXAcUzRhkeQhVtwtx-NBR0hbkoo=aCTwN464Dsj8680GPMDxw@mail.gmail.com' \
--to=clement.moyroud@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).