From: Junio C Hamano Date: Tue, 26 Apr 2022 16:25:08 GMT Subject: Re: a problem with git describe Message-ID: In-Reply-To: Johannes Schindelin writes: >> Actually, not quite. when "git" runs in "sudo git", the real >> identity has long lost, so the below would not help. Sigh. > > Could you help me understand what is going on exactly? How/when is `git` > running `sudo git`? I thought the problem was that `sudo make install` > transitively runs `git describe` with euid 0, but `getuid()` should still > return the non-admin user's ID, no? The first "git" is literal English meaning, refers to a person ;-) Anybody building and installing git would do $ sudo make $ sudo make install and no, sudo does not leave a clue in getuid() from whom it came from.