mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
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:
@@ -29,8 +29,8 @@ remote_url="$(git config remote."$remote".url)"
|
|||||||
repo_fq="$(echo "$remote_url" | perl -lne 'print $1 if (
|
repo_fq="$(echo "$remote_url" | perl -lne 'print $1 if (
|
||||||
m, ^ git\@github\.com:
|
m, ^ git\@github\.com:
|
||||||
([^/]+ / [^/]+)
|
([^/]+ / [^/]+)
|
||||||
(?:\.git)?
|
(\.git)?
|
||||||
$ ,x )')"
|
$ ,x )' | sed 's/.git$//')"
|
||||||
|
|
||||||
if [ -z "$repo_fq" ]; then
|
if [ -z "$repo_fq" ]; then
|
||||||
# We're pretty specific about what we expect the URL to look like;
|
# We're pretty specific about what we expect the URL to look like;
|
||||||
|
|||||||
Reference in New Issue
Block a user