Open pearcec opened 12 years ago
Options I could come up with off the top of my head:
/home/vagrant/.gitconfig
to /vagrant/.gitconfig.vagrant
.We may be able to pass along our git environment variables via ssh. Could we use the SendEnv ssh config? Something like SendEnv GIT_*
So if people want this functionality, they just have to set Git environment variables on their host and add the SendEnv to their ssh config.
We would also need to modify the ssh daemon config to accept SendEnv. Is it off by default?
Would SendEnv work with vagrant ssh
?
Some (all?) of the Git environment variables we want to pass along: GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE
Thanks Andy!
Contemplate how to get your ~/.gitconfig file into ~vagrant/.gitconfig on the host.
vagrant@ubuntu-10:~/xforty-drupal$ git commit -a [7.x 1e64d3a] Bumping versions. Committer: vagrant vagrant@ubuntu-10.04.3-server-amd64 Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:
If the identity used for this commit is wrong, you can fix it with:
1 files changed, 2 insertions(+), 2 deletions(-)