From: John Ratliff <john@technoplaza.net>
To: git@vger.kernel.org
Subject: git credential cache and sudo
Date: Fri, 12 Mar 2021 11:43:46 -0500 [thread overview]
Message-ID: <CAP8UukjW_TeswTHHfiwzc989U+wZMVcHeS1siRF0Rbg5nc3D5w@mail.gmail.com> (raw)
When I do sudo git pull, git does not know about my credential cache.
On some servers, when I do a sudo -E git pull, it can find my
credential cache and use it. On other servers, I think the sudo
configuration is stripping the environment, so this doesn't work and I
still have to enter my git credentials.
What environment variables do I need to configure sudo to preserve to
make sudo -E git pull work with my credential cache? Or is there
something else I can pass to git or define to get it to use my
credential cache?
Thanks.
--John
next reply other threads:[~2021-03-12 16:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-12 16:43 John Ratliff [this message]
2021-03-12 20:29 ` git credential cache and sudo Jeff King
2021-03-13 2:51 ` Jonathan Nieder
2021-03-15 17:24 ` John Ratliff
2021-03-15 18:56 ` Jeff King
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP8UukjW_TeswTHHfiwzc989U+wZMVcHeS1siRF0Rbg5nc3D5w@mail.gmail.com \
--to=john@technoplaza.net \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).