summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-10-29 04:13:49 -0400
committerLibravatar Jeff King <peff@peff.net>2012-10-29 04:13:49 -0400
commitdeb2458132a5886c8f7b12870451a1bc3c311e9f (patch)
treef08e13b947ce2c8e8c41aaa8df4740121d880110 /t
parentMerge branch 'nd/grep-true-path' (diff)
parentfilter-branch: use git-sh-setup's ident parsing functions (diff)
downloadtgif-deb2458132a5886c8f7b12870451a1bc3c311e9f.tar.xz
Merge branch 'jk/sh-setup-in-filter-branch'
Refactoring to avoid code duplication in shell scripts. * jk/sh-setup-in-filter-branch: filter-branch: use git-sh-setup's ident parsing functions git-sh-setup: refactor ident-parsing functions
Diffstat (limited to 't')
-rwxr-xr-xt/t7003-filter-branch.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh
index 4d13e10de1..1e7a209efa 100755
--- a/t/t7003-filter-branch.sh
+++ b/t/t7003-filter-branch.sh
@@ -167,10 +167,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)
'