File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ test_expect_success \
38
38
stg pop &&
39
39
stg import "$TEST_DIRECTORY"/t1800/git-diff &&
40
40
test "$(echo $(stg series --noprefix))" = "git-diff-1 git-diff" &&
41
- stg delete ..
41
+ stg delete git-diff git-diff-1
42
42
'
43
43
44
44
test_expect_success \
@@ -71,6 +71,18 @@ test_expect_success \
71
71
stg delete ..
72
72
'
73
73
74
+ test_expect_success \
75
+ ' Apply a patch with ".." in filename' \
76
+ '
77
+ cp "$TEST_DIRECTORY"/t1800/git-diff git..diff &&
78
+ test_when_finished rm git..diff &&
79
+ stg import -p1 git..diff &&
80
+ test "$(echo $(stg series --noprefix))" = "git.diff" &&
81
+ [ $(git cat-file -p $(stg id) \
82
+ | grep -c "tree e96b1fba2160890ff600b675d7140d46b022b155") = 1 ] &&
83
+ stg delete ..
84
+ '
85
+
74
86
test_expect_success \
75
87
' Apply a patch created with "git diff" using -p0' \
76
88
'
You can’t perform that action at this time.
0 commit comments