summaryrefslogtreecommitdiffstats
path: root/git-config.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-06-17 17:41:21 -0700
committerJunio C Hamano <gitster@pobox.com>2022-06-17 17:41:21 -0700
commit4138add25c1e7ac55d4dca97e49f150e803e6ab0 (patch)
tree7ad4cd2cc1fe360ac3e69d83c36cdb31d33d6105 /git-config.html
parentb4d46bb3b5a591ec1e691e3a053d50f9a4fec29f (diff)
downloadgit-htmldocs-4138add25c1e7ac55d4dca97e49f150e803e6ab0.tar.gz
Autogenerated HTML docs for v2.37.0-rc1
Diffstat (limited to 'git-config.html')
-rw-r--r--git-config.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/git-config.html b/git-config.html
index 88223b04c..b608d614d 100644
--- a/git-config.html
+++ b/git-config.html
@@ -9804,14 +9804,15 @@ that you deem safe.</p></div>
<div class="paragraph"><p>As explained, Git only allows you to access repositories owned by
yourself, i.e. the user who is running Git, by default. When Git
is running as <em>root</em> in a non Windows platform that provides sudo,
- however, git checks the SUDO_UID environment variable that sudo creates
-and will allow access to the uid recorded as its value instead.
+however, git checks the SUDO_UID environment variable that sudo creates
+and will allow access to the uid recorded as its value in addition to
+the id from <em>root</em>.
This is to make it easy to perform a common sequence during installation
"make &amp;&amp; sudo make install". A git process running under <em>sudo</em> runs as
<em>root</em> but the <em>sudo</em> command exports the environment variable to record
which id the original user has.
If that is not what you would prefer and want git to only trust
-repositories that are owned by root instead, then you must remove
+repositories that are owned by root instead, then you can remove
the <code>SUDO_UID</code> variable from root&#8217;s environment before invoking git.</p></div>
</dd>
<dt class="hdlist1">