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

Change docs link on project clone failure

GitOrigin-RevId: 930db8a771e00adf15f83d7740e289a8a868f62d
This commit is contained in:
ilkin-overleaf 2023-09-22 13:45:24 +03:00 committed by Copybot
parent 926d8911e1
commit 97303c8a43
3 changed files with 9 additions and 9 deletions

View file

@ -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."
));
}

View file

@ -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."
);
}
}

View file

@ -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"));