Skip to content

Conversation

@chrisgavin
Copy link
Contributor

This ensures that if the repository we are pushing to already exists that it was created by the sync tool. It does this by checking the "homepage" property that we always set to the GitHub.com URL of the repository containing the sync tool.

It also adds a --force flag that can be used to override this check. This might be useful when the user running the tool is not allowed to make repositories themselves but instead has to have an administrator create it for them.

Closes #20.

@chrisgavin chrisgavin merged commit 44139e4 into main Aug 25, 2020
@chrisgavin chrisgavin deleted the homepage-safety-check branch August 25, 2020 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a safety check to ensure we're not force-pushing over an unrelated repository that has been selected by mistake.

2 participants