2010年11月14日 星期日

Using gmail to send your patches

Using gmail to send your patches
https://git.wiki.kernel.org/index.php/GitTips#Using_gmail_to_send_your_patches

git send-email
http://elinux.org/Git_usage#send-email

git format-patch -s -n -o XXXX YYY..ZZZ
git send-email --to mkl0301@gmail.com XXXX/


git send-mail shows:
Can't locate Net/SMTP/SSL.pm in @INC (@INC contains: /usr/share/perl/5.8.8 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/libexec/git-core/git-send-email line 1037, <FIN> line 1.
git-send-email misses dependency to libnet-smtp-ssl-perl
https://bugs.launchpad.net/ubuntu/+source/git-core/+bug/272939
libnet-smtp-ssl-perl

http://lists.zerezo.com/git/msg711675.html
msmtp
My Ubuntu 8.04 have msmtp only.


Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=msmtp encryption=tls hello=localhost.localdomainport=587 at /usr/libexec/git-core/git-send-email line 1069.

In ~/.gitconfig, use:
smtpserver = /usr/bin/msmtp
instead of
smtpserver = msmtp


msmtp: /home/XXX/.msmtprc: must be owned by you
msmtp: /home/XXX/.msmtprc: must have no more than user read/write permissions

chmod ag-rw ~/.msmtprc
chown XXX .msmtprc
(When I was in "sudo -s", owner must be root, but in user XXX directory.)

沒有留言: