summaryrefslogtreecommitdiff
path: root/tests/libgit2/patch
diff options
context:
space:
mode:
authorIliyas Jorio <iliyas@jor.io>2022-03-13 17:36:48 +0100
committerIliyas Jorio <iliyas@jor.io>2022-03-13 17:39:12 +0100
commit11866327d035b872603cdfa3635b836f92008190 (patch)
tree8cca4d9623662a1021f4f0897bdbb20b2d4dd6e3 /tests/libgit2/patch
parent2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7 (diff)
downloadlibgit2-11866327d035b872603cdfa3635b836f92008190.tar.gz
test: add test that regenerates patches with spaces in filename
This currently crashes, proposed fix in subsequent commit.
Diffstat (limited to 'tests/libgit2/patch')
-rw-r--r--tests/libgit2/patch/patch_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/libgit2/patch/patch_common.h b/tests/libgit2/patch/patch_common.h
index 1e03889fc..7e2cb6a58 100644
--- a/tests/libgit2/patch/patch_common.h
+++ b/tests/libgit2/patch/patch_common.h
@@ -933,6 +933,15 @@
"@@ -0,0 +1 @@\n" \
"+a\n"
+#define PATCH_DELETE_FILE_WITH_SPACE \
+ "diff --git a/sp ace.txt b/sp ace.txt\n" \
+ "deleted file mode 100644\n" \
+ "index 789819226..000000000\n" \
+ "--- a/sp ace.txt\n" \
+ "+++ /dev/null\n" \
+ "@@ -1 +0,0 @@\n" \
+ "-a\n"
+
#define PATCH_CRLF \
"diff --git a/test-file b/test-file\r\n" \
"new file mode 100644\r\n" \