diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-05-06 00:36:25 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-06 00:36:25 +0300 |
commit | 09a2302c70a2e1023a16980afa920f36e6aa63ac (patch) | |
tree | f2f6d29b605d2fbb672797563290a5e207a9e2c7 /t | |
parent | 8da1481bdcd6c85a0e8839df61a16180b9434f10 (diff) | |
parent | d1c25272f5c5f78ae302f07ea0b5832c601e373b (diff) |
Merge branch 'rs/fast-export-pathspec-fix' into maint
"git fast-export -- <pathspec>" lost the pathspec when showing the
second and subsequent commits, which has been corrected.
source: <2c988c7b-0efe-4222-4a43-8124fe1a9da6@web.de>
* rs/fast-export-pathspec-fix:
2.36 fast-export regression fix
Diffstat (limited to 't')
-rwxr-xr-x | t/t9350-fast-export.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh index 7b7a18dd2c..fc99703fc5 100755 --- a/t/t9350-fast-export.sh +++ b/t/t9350-fast-export.sh @@ -500,6 +500,13 @@ test_expect_success 'path limiting with import-marks does not lose unmodified fi grep file0 actual ' +test_expect_success 'path limiting works' ' + git fast-export simple -- file >actual && + sed -ne "s/^M .* //p" <actual | sort -u >actual.files && + echo file >expect && + test_cmp expect actual.files +' + test_expect_success 'avoid corrupt stream with non-existent mark' ' test_create_repo avoid_non_existent_mark && ( |