From 132aaab6b9b243bd7a41a56d7a5bfb1399ec2033 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Mon, 19 Apr 2021 12:21:55 +0200 Subject: [PATCH] fix: remove .git from the url if its a https clone --- src/activity.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/activity.ts b/src/activity.ts index ad22a9b..dbf8336 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -80,6 +80,8 @@ export async function activity(previous: ActivityPayload = {}) { if (repo) { if (repo.startsWith('git@')) { repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', ''); + } else { + repo = repo.replace('.git', ''); } state = {