upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-18 13:10:37 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-18 13:10:37 +0100
commite863ee5e2172cd7d2cd7a903d138bd839de4972d (patch)
tree4b508876cb11b614cebd372370e3a36192b2d0b5
parenta35fc976be5b8c481c9a638d1486d64941d9bcad (diff)
test: fix gitlib2 version in sample
so they match v1.8.2 used in updated git2
-rw-r--r--src/lib/git/mod.rs4
-rw-r--r--tests/ngit/send.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/git/mod.rs b/src/lib/git/mod.rs
index fb7ae74..7ebdefd 100644
--- a/src/lib/git/mod.rs
+++ b/src/lib/git/mod.rs
@@ -1192,7 +1192,7 @@ mod tests {
1192 +some content1\n\\ \ 1192 +some content1\n\\ \
1193 No newline at end of file\n\ 1193 No newline at end of file\n\
1194 --\n\ 1194 --\n\
1195 libgit2 1.7.2\n\ 1195 libgit2 1.8.1\n\
1196 \n\ 1196 \n\
1197 ", 1197 ",
1198 git_repo.make_patch_from_commit(&oid_to_sha1(&oid), &None)?, 1198 git_repo.make_patch_from_commit(&oid_to_sha1(&oid), &None)?,
@@ -1228,7 +1228,7 @@ mod tests {
1228 +some content1\n\\ \ 1228 +some content1\n\\ \
1229 No newline at end of file\n\ 1229 No newline at end of file\n\
1230 --\n\ 1230 --\n\
1231 libgit2 1.7.2\n\ 1231 libgit2 1.8.1\n\
1232 \n\ 1232 \n\
1233 ", 1233 ",
1234 git_repo.make_patch_from_commit(&oid_to_sha1(&oid), &Some((3, 5)))?, 1234 git_repo.make_patch_from_commit(&oid_to_sha1(&oid), &Some((3, 5)))?,
diff --git a/tests/ngit/send.rs b/tests/ngit/send.rs
index ef09425..2aad232 100644
--- a/tests/ngit/send.rs
+++ b/tests/ngit/send.rs
@@ -327,7 +327,7 @@ mod when_cover_letter_details_specified_with_range_of_head_2_sends_cover_letter_
327 +some content\n\\ \ 327 +some content\n\\ \
328 No newline at end of file\n\ 328 No newline at end of file\n\
329 --\n\ 329 --\n\
330 libgit2 1.7.2\n\ 330 libgit2 1.8.1\n\
331 \n\ 331 \n\
332 ", 332 ",
333 ); 333 );
@@ -353,7 +353,7 @@ mod when_cover_letter_details_specified_with_range_of_head_2_sends_cover_letter_
353 +some content\n\\ \ 353 +some content\n\\ \
354 No newline at end of file\n\ 354 No newline at end of file\n\
355 --\n\ 355 --\n\
356 libgit2 1.7.2\n\ 356 libgit2 1.8.1\n\
357 \n\ 357 \n\
358 ", 358 ",
359 ); 359 );