From 786a5f9aea706d50ea3f806923dcbf8100f14626 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 16 Jun 2009 11:39:21 -0300 Subject: Fix mailimport to work with git >= 1.6.0 From: Mauro Carvalho Chehab Newer git's don't create git- aliases anymore. In general, distro versions of git still create the aliases. However, if using upstream -git, this will fail. So, use the git syntax instead. This is also backward compatible Signed-off-by: Mauro Carvalho Chehab --- mailimport | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailimport b/mailimport index 0050a1ded..2ff60d1d8 100755 --- a/mailimport +++ b/mailimport @@ -186,7 +186,7 @@ proccess_patch () exit fi - cat $i| git-mailinfo $DIR/msg $DIR/patch >$DIR/author + cat $i| git mailinfo $DIR/msg $DIR/patch >$DIR/author cat $DIR/msg|grep -vi ^CC: >$DIR/msg2 cat $DIR/author|perl -ne "if (m/Author[:]\\s*(.*)\\n/) { \$auth=\$1; } else \ @@ -292,9 +292,9 @@ else ^Content-Transfer-Encoding: 8bit EOF - echo git-mailsplit -b $DIR/tmpbox $DIR + echo git mailsplit -b $DIR/tmpbox $DIR echo -n "Number of patches at file: " - git-mailsplit -b $DIR/tmpbox $DIR + git mailsplit -b $DIR/tmpbox $DIR echo for i in $DIR/0*; do -- cgit v1.2.3