rdnetto / YCM-Generator

Generates config files for YouCompleteMe (https://github.com/Valloric/YouCompleteMe)
GNU General Public License v3.0
917 stars 128 forks source link

Ignores ssh-agent when updating SSH based git submodules from cmake #108

Open codemedic opened 7 years ago

codemedic commented 7 years ago

When invoking :YcmGenerateConfig, if there are any git submodules that are setup with ssh based access, it doesn't seem to be able to access the ssh-agent.

Most likely it is down to the way the command is invoked; is it inside a pristine shell/env?

rdnetto commented 7 years ago

Most likely it is down to the way the command is invoked; is it inside a pristine shell/env?

That's exactly right. You can disable this functionality using --preserve-environment. The reason it's turned on by default is to avoid any variables that might set the compiler from overriding the fake toolchain.