push_to_pull_request: Fix handling of .git.

This was throwing the "you can't access the repo" error for this
reason.
This commit is contained in:
Tim Abbott 2018-06-01 15:54:55 -07:00
parent 52c3c00ea0
commit ad4617c953
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ remote_url="$(git config remote."$remote".url)"
repo_fq="$(echo "$remote_url" | perl -lne 'print $1 if (
m, ^ git\@github\.com:
([^/]+ / [^/]+)
(?:\.git)?
$ ,x )')"
(\.git)?
$ ,x )' | sed 's/.git$//')"
if [ -z "$repo_fq" ]; then
# We're pretty specific about what we expect the URL to look like;