Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Share the rename fixture of the diff pages
Each repository is built tree for tree as before. A helper that lost
the caller's change would still fail t0107, where following no path
shows file-1, but t0108 passed without its added line, so it now looks
for that line.
Diffstat (limited to 'tests/t0109-patch.sh')
| -rwxr-xr-x | tests/t0109-patch.sh | 10 |
1 file changed, 1 insertion, 9 deletions
diff --git a/tests/t0109-patch.sh b/tests/t0109-patch.sh index 9077960..64d995c 100755 --- a/tests/t0109-patch.sh +++ b/tests/t0109-patch.sh @@ -140,15 +140,7 @@ test_expect_success 'enable-plain-email=0 leaves the address off the patch' ' # carries the rename rather than a file added whole. It matches git given both # names, but for the note naming the limit. test_expect_success 'a renamed file is patched as the rename' ' - mkrepo repos/moved 1 && - ( - cd repos/moved && - test_seq 1 10 >old.txt && - git add old.txt && - git commit -m "add old.txt" && - git mv old.txt new.txt && - git commit -m "rename old.txt" - ) && + mkrepo_renamed repos/moved && cgitrc_repo movedrc moved && cgit_ok movedrc "url=moved/patch/new.txt" >tmp && git -C repos/moved format-patch -1 -M --subject-prefix="" \ |
