summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-10-17 02:23:10 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-10-17 02:47:51 (GMT)
commit46eb449cbefac461659c42c4ba4b36de1959e7ca (patch)
tree09e62ea604255458202b67723e54684869c8380d /t
parent8ef44519a64d3ac863a9a3a6dbdba09ea275c822 (diff)
downloadgit-46eb449cbefac461659c42c4ba4b36de1959e7ca.zip
git-46eb449cbefac461659c42c4ba4b36de1959e7ca.tar.gz
git-46eb449cbefac461659c42c4ba4b36de1959e7ca.tar.bz2
filter-branch: update current branch when rewritten
Earlier, "git filter-branch --<options> HEAD" would not update the working tree after rewriting the branch. This commit fixes it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 't')
-rwxr-xr-xt/t7003-filter-branch.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh
index e935b20..2089351 100755
--- a/t/t7003-filter-branch.sh
+++ b/t/t7003-filter-branch.sh
@@ -41,7 +41,9 @@ test_expect_success 'rewrite, renaming a specific file' '
'
test_expect_success 'test that the file was renamed' '
- test d = $(git show HEAD:doh)
+ test d = $(git show HEAD:doh) &&
+ test -f doh &&
+ test d = $(cat doh)
'
git tag oldD HEAD~4