Kaynağa Gözat

Merge pull request #14937 from overleaf/ii-git-access-link

Change docs link on project clone failure

GitOrigin-RevId: 930db8a771e00adf15f83d7740e289a8a868f62d
ilkin-overleaf 2 yıl önce
ebeveyn
işleme
97303c8a43

+ 2 - 2
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java

@@ -192,7 +192,7 @@ public class Oauth2Filter implements Filter {
             "and selecting Git from the left sidebar in the project view.",
             "",
             "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/learn/how-to/Git_integration for more information."
         ));
     }
 
@@ -212,7 +212,7 @@ public class Oauth2Filter implements Filter {
             "This Overleaf project does not exist.",
             "",
             "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/learn/how-to/Git_integration for more information."
         ));
     }
 

+ 5 - 5
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/MissingRepositoryException.java

@@ -15,7 +15,7 @@ public class MissingRepositoryException extends SnapshotAPIException {
         "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."
+        "see https://www.overleaf.com/learn/how-to/Git_integration for more information."
     );
 
     static List<String> buildDeprecatedMessage(String newUrl) {
@@ -29,7 +29,7 @@ public class MissingRepositoryException extends SnapshotAPIException {
                     "prompted to update your git remote to the project's new identifier.",
                     "",
                     "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/learn/how-to/Git_integration for more information."
             );
         } else {
             return Arrays.asList(
@@ -43,7 +43,7 @@ public class MissingRepositoryException extends SnapshotAPIException {
                 "prompted to update your git remote to the project's new identifier.",
                 "",
                 "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/learn/how-to/Git_integration for more information."
             );
         }
 
@@ -55,7 +55,7 @@ public class MissingRepositoryException extends SnapshotAPIException {
                 "This Overleaf project has been moved to Overleaf v2 and cannot be used with git at this time.",
                 "",
                 "If this error persists, please contact us at support@overleaf.com, or",
-                "see https://www.overleaf.com/help/342 for more information."
+                "see https://www.overleaf.com/learn/how-to/Git_integration for more information."
             );
         } else {
             return Arrays.asList(
@@ -70,7 +70,7 @@ public class MissingRepositoryException extends SnapshotAPIException {
                 "    git remote set-url origin " + remoteUrl,
                 "",
                 "If this does not work, please contact us at support@overleaf.com, or",
-                "see https://www.overleaf.com/help/342 for more information."
+                "see https://www.overleaf.com/learn/how-to/Git_integration for more information."
             );
         }
     }

+ 2 - 2
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/base/Request.java

@@ -81,7 +81,7 @@ public abstract class Request<T extends Result> {
                     "Rate-limit exceeded. Please wait a while and try again.",
                     "",
                     "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/learn/how-to/Git_integration for more information."
                   ));
                 } else if (sc == HttpServletResponse.SC_CONFLICT) {  // 409
                     try {
@@ -96,7 +96,7 @@ public abstract class Request<T extends Result> {
                                     "We recommend removing the .git folder before trying again.",
                                     "",
                                     "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/learn/how-to/Git_integration for more information."
                             ));
                         } else {
                             throw new MissingRepositoryException(Arrays.asList("Conflict: 409"));