multiple fixes

This commit is contained in:
tdurieux
2026-05-03 15:30:54 +02:00
parent 1968e3341a
commit a5f66d6844
31 changed files with 1513 additions and 464 deletions
+2 -2
View File
@@ -209,8 +209,8 @@ export async function getRepositoryFromGitHub(opt: {
accessToken: string;
force?: boolean;
}) {
if (opt.repo.indexOf(".git") > -1) {
opt.repo = opt.repo.replace(".git", "");
if (opt.repo.endsWith(".git")) {
opt.repo = opt.repo.slice(0, -4);
}
let dbModel;
if (opt.repositoryID) {