Skip to content

Commit 4681739

Browse files
committed
Use objects which exist when creating signed commits
We previously got away with random data, but as we're creating a commit, libgit2 now checks whether the targets do exist.
1 parent 71e57ee commit 4681739

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/commit_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def test_extract_signature
283283

284284
def test_create_with_signature
285285
signed_commit = <<-COMMIT
286-
tree 6b79e22d69bf46e289df0345a14ca059dfc9bdf6
287-
parent 34734e478d6cf50c27c9d69026d93974d052c454
286+
tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
287+
parent 8496071c1b46c854b31185ea97743be6a8774479
288288
author Ben Burkert <[email protected]> 1358451456 -0800
289289
committer Ben Burkert <[email protected]> 1358451456 -0800
290290
gpgsig -----BEGIN PGP SIGNATURE-----
@@ -329,8 +329,8 @@ def test_create_with_signature
329329
SIGNATURE
330330

331331
base_data = <<-SIGNEDDATA
332-
tree 6b79e22d69bf46e289df0345a14ca059dfc9bdf6
333-
parent 34734e478d6cf50c27c9d69026d93974d052c454
332+
tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
333+
parent 8496071c1b46c854b31185ea97743be6a8774479
334334
author Ben Burkert <[email protected]> 1358451456 -0800
335335
committer Ben Burkert <[email protected]> 1358451456 -0800
336336

0 commit comments

Comments
 (0)