The Unified and Autonomous Development Platform
Fix issue #1355 - Regression - commits signed with SSH key crash the commits page
Robin Shend0ad68267f25
diff --git a/server-core/src/main/java/io/onedev/server/git/GitUtils.java b/server-core/src/main/java/io/onedev/server/git/GitUtils.javaindex 0349a82580..cfae3c0465 100644--- a/server-core/src/main/java/io/onedev/server/git/GitUtils.java+++ b/server-core/src/main/java/io/onedev/server/git/GitUtils.java@@ -683,11 +683,9 @@ public class GitUtils {} else {return new SignatureUnverified(null, "Signature does not decode into a signature object");}- } catch (PGPException e) {+ } catch (Exception e) {logger.error("Error parsing commit signature", e);- return new SignatureUnverified(null, "Signature cannot be parsed");- } catch (IOException e2) {- throw new RuntimeException(e2);+ return new SignatureUnverified(null, "Signature cannot be parsed");}}