Explorar el Código

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.
```
Shane Kilkelly hace 7 años
padre
commit
9ee39ae930

+ 3 - 2
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 class MissingRepositoryException extends SnapshotAPIException {
 
 
     public static final List<String> GENERIC_REASON = Arrays.asList(
     public static final List<String> 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",
         "If this is unexpected, please contact us at support@overleaf.com, or",
         "see https://www.overleaf.com/help/342 for more information."
         "see https://www.overleaf.com/help/342 for more information."