Re[3]: What can cause empty GIT_AUTHOR_NAME for 'git filter-branch --tree-filter' on Solaris?
- From
- Ilya Basin <basinilya@gmail.com>
- Date
- Oct 17, 2012, 10:36 UTC
- Message-ID
- <1665262317.20121017143623@gmail.com>
- In-Reply-To
- <1013956402.20121017125847@gmail.com>
JS>> Most likely, your sed has problems with a sed script in function JS>> get_author_ident_from_commit. I tested it like this:
JS>> $ sh -c '. $(git --exec-path)/git-sh-setup; JS>> get_author_ident_from_commit HEAD' JS>> GIT_AUTHOR_NAME='Johannes Sixt' JS>> GIT_AUTHOR_EMAIL='j6t@kdbg.org' JS>> GIT_AUTHOR_DATE='@1350025129 +0200'
JS>> -- Hannes
IB> Both systems have GNU sed 4.2.1 installed. I wrote a wrapper script wor sed. IB> It's output attached. IB> The difference is letter case in sed input data: IB> Solaris: IB> /^AUTHOR / IB> Windows: IB> /^author /
The culprit is bad $PATH :
When git-filter-branch runs, for some reason two new entries precede
/usr/bin in it:
/tmp/777/.ilya-sparc/bin
/home/tester/.ilya/opt/SNiFF-3.2.1/bin
/export/home/testora/app/testora/product/11.2.0/client_32/bin
+/usr/xpg6/bin
+/usr/xpg4/bin
/usr/bin
/home/tester/apache-ant-1.7.1/bin
/usr/jdk/instances/jdk1.5.0//binAnd /usr/xpg6/bin/tr fails to make "AUTHOR" lowercase.