Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions etc/check-remote.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion etc/docs/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down