I have a ruby script that interacts with git heavily.
I run the entire script in sudo -E (this is needed for reasons other than
git)
I can do git checkout {branch} just fine. However I get asked for the
root@git... password when I try to fetch.
I tried using su to make it work but it still asks for the password (I do
not have to use 'su' when doing git checkout {branch}
su ENV['USER'] -c 'git fetch'
Due to what this script is doing, not running it in sudo -E is not an
option.
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.