From 9ee39ae930591d1a87b62dadffb884f60b9a5570 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 13 Dec 2018 12:37:42 +0000 Subject: [PATCH] Wrap the generic repository-missing message correctly Now appears to the client as: ``` fatal: remote error: no git access This Overleaf project currently has no git access, either because the project does not exist, or because git access is not enabled for the project. ``` --- .../snapshot/base/MissingRepositoryException.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java index 9a9e233fc3..320e3d192e 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java @@ -10,8 +10,9 @@ import java.util.List; public class MissingRepositoryException extends SnapshotAPIException { public static final List GENERIC_REASON = Arrays.asList( - "This Overleaf project currently has no git access, either", - "because the project does not exist, or because git access is not enabled for the project.", + "This Overleaf project currently has no git access, either because", + "the project does not exist, or because git access is not enabled", + "for the project.", "", "If this is unexpected, please contact us at support@overleaf.com, or", "see https://www.overleaf.com/help/342 for more information."