From fbf72ba2de0df04ddc696cf536197f4fbe45ae90 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 8 Apr 2012 15:35:42 +0400 Subject: [PATCH] GitCherryPickTest: better string value of the hash --- .../git4idea/tests/git4idea/cherrypick/GitCherryPickTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git4idea/tests/git4idea/cherrypick/GitCherryPickTest.groovy b/plugins/git4idea/tests/git4idea/cherrypick/GitCherryPickTest.groovy index 8f9812628a1f..a04d9ca80ff9 100644 --- a/plugins/git4idea/tests/git4idea/cherrypick/GitCherryPickTest.groovy +++ b/plugins/git4idea/tests/git4idea/cherrypick/GitCherryPickTest.groovy @@ -77,7 +77,7 @@ hint: and commit the result with 'git commit' } GitCommit commit(String commitMessage = "plain commit") { - AbstractHash hash = AbstractHash.create(new SHA().toString()) + AbstractHash hash = AbstractHash.create(Integer.toHexString(new SHA().hashCode())) List changes = new ArrayList(); changes.add(new Change(null, new MockContentRevision(new FilePathImpl(new MockVirtualFile("name")), VcsRevisionNumber.NULL))); new GitCommit(hash, SHAHash.emulate(hash), "John Smith", null, null, commitMessage, commitMessage, null, null, null, null, null, null,