t4212: loosen far-in-future test for AIX
[gitweb.git] / t / t7003-filter-branch.sh
index 782270204564adb4025089fd88b5049d1c713ece..9496736a89eb6b0b1ece64052cd2726c516c952b 100755 (executable)
@@ -181,10 +181,11 @@ test_expect_success 'author information is preserved' '
        test_tick &&
        GIT_AUTHOR_NAME="B V Uips" git commit -m bvuips &&
        git branch preserved-author &&
-       git filter-branch -f --msg-filter "cat; \
+       (sane_unset GIT_AUTHOR_NAME &&
+        git filter-branch -f --msg-filter "cat; \
                        test \$GIT_COMMIT != $(git rev-parse master) || \
                        echo Hallo" \
-               preserved-author &&
+               preserved-author) &&
        test 1 = $(git rev-list --author="B V Uips" preserved-author | wc -l)
 '