Skip to content

Commit a4c5bbf

Browse files
committed
contrib: Add support for http[s] URLs in github-merge
Sometimes it can be useful to use github-merge with read-only access (say, for reviewing and testing).
1 parent 059a3cf commit a4c5bbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/devtools/github-merge.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ def main():
168168
print("git config --global user.signingkey <key>",file=stderr)
169169
sys.exit(1)
170170

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

173176
# Extract settings from command line
174177
args = parse_arguments()

0 commit comments

Comments
 (0)