Skip to content

Commit

Permalink
add .git extension as a valid option for the origin name (#76)
Browse files Browse the repository at this point in the history
* add  extension as a valid option for the origin name

* Update release.py

minor wording fix in comment
  • Loading branch information
mchalek committed Jul 20, 2020
1 parent 86a6a82 commit dde94fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,19 @@ def bump_version(version, bump_type):


def check_remote(remote_name):
"""
Print a warning if we are trying to deploy from a local clone of a fork, rather
than from a clone of the primary repository.
"""
output = subprocess.check_output(
shlex.split(f'git remote get-url {remote_name}'),
encoding='utf-8'
).strip()

# let's check this the dumbest way possible
if output not in [
'git@github.com:etsy/boundary-layer',
'git@github.com:etsy/boundary-layer.git',
'https://github.com/etsy/boundary-layer',
'https://www.github.com/etsy/boundary-layer',
]:
Expand Down

0 comments on commit dde94fa

Please sign in to comment.