mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-16 23:03:34 +02:00
multiple fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user