Skip to content

Commit

Permalink
contrib: Add support for http[s] URLs in github-merge
Browse files Browse the repository at this point in the history
Sometimes it can be useful to use github-merge with read-only access
(say, for reviewing and testing).
  • Loading branch information
laanwj committed Jan 14, 2019
1 parent 059a3cf commit a4c5bbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/devtools/github-merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ def main():
print("git config --global user.signingkey <key>",file=stderr)
sys.exit(1)

host_repo = host+":"+repo # shortcut for push/pull target
if host.startswith(('https:','http:')):
host_repo = host+"/"+repo+".git"
else:
host_repo = host+":"+repo

# Extract settings from command line
args = parse_arguments()
Expand Down

0 comments on commit a4c5bbf

Please sign in to comment.