Skip to content

Commit a57cd64

Browse files
chore(no-story): allow clones that use https in docs pre-generation check (#3481)
1 parent 57b98e0 commit a57cd64

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

etc/check-remote.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
#! /bin/bash
22

3-
echo "full list of remotes"
4-
git remote -v
5-
6-
printf "\n\n"
7-
8-
echo "push origin remote"
9-
git remote get-url --push origin
10-
11-
printf "\n\n"
12-
13-
echo "looking for 'github.com:mongodb' in uri"
14-
git remote get-url --push origin | grep -v "github.com:mongodb"
15-
16-
printf "\n\n"
17-
18-
if git remote get-url --push origin | grep -qv "github.com:mongodb"; then
3+
if git remote get-url --push origin | grep -qv "github.com:mongodb\|github.com/mongodb"; then
194
echo "git remote does not match node-mongodb-native. are you working off of a fork?"
205
exit 1
216
fi

etc/docs/build.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ async function main() {
7676
try {
7777
await exec('bash ./etc/check-remote.sh');
7878
} catch (error) {
79-
console.error(error.stderr);
8079
console.error(error.stdout);
8180
process.exit(1);
8281
}

0 commit comments

Comments
 (0)