From cfc9347c6e0ac732993dd60b0051816255c58c62 Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Wed, 30 Nov 2022 12:21:29 -0500 Subject: [PATCH 1/2] fix: allow clones that use https --- etc/check-remote.sh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/etc/check-remote.sh b/etc/check-remote.sh index 81ef4631cb2..a1348dd4672 100644 --- a/etc/check-remote.sh +++ b/etc/check-remote.sh @@ -1,21 +1,6 @@ #! /bin/bash -echo "full list of remotes" -git remote -v - -printf "\n\n" - -echo "push origin remote" -git remote get-url --push origin - -printf "\n\n" - -echo "looking for 'github.com:mongodb' in uri" -git remote get-url --push origin | grep -v "github.com:mongodb" - -printf "\n\n" - -if git remote get-url --push origin | grep -qv "github.com:mongodb"; then +if git remote get-url --push origin | grep -qv "github.com:mongodb\|github.com/mongodb"; then echo "git remote does not match node-mongodb-native. are you working off of a fork?" exit 1 fi From 3de81a6c52efb179f3b85715fe74911097a5b536 Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Wed, 30 Nov 2022 12:24:26 -0500 Subject: [PATCH 2/2] clean up output --- etc/docs/build.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/etc/docs/build.ts b/etc/docs/build.ts index 0a999589519..8a2905db4fc 100755 --- a/etc/docs/build.ts +++ b/etc/docs/build.ts @@ -76,7 +76,6 @@ async function main() { try { await exec('bash ./etc/check-remote.sh'); } catch (error) { - console.error(error.stderr); console.error(error.stdout); process.exit(1); }