Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2a733afa
Unverified
Commit
2a733afa
authored
Oct 16, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69839 from dims/tolerate-http-and-https-along-with-git-in-repo-urls
tolerate both http(s) and git urls for cherry_pick_pull
parents
dbd3be92
0b15620e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cherry_pick_pull.sh
hack/cherry_pick_pull.sh
+2
-2
No files found.
hack/cherry_pick_pull.sh
View file @
2a733afa
...
...
@@ -34,8 +34,8 @@ DRY_RUN=${DRY_RUN:-""}
REGENERATE_DOCS
=
${
REGENERATE_DOCS
:-
""
}
UPSTREAM_REMOTE
=
${
UPSTREAM_REMOTE
:-
upstream
}
FORK_REMOTE
=
${
FORK_REMOTE
:-
origin
}
MAIN_REPO_ORG
=
${
MAIN_REPO_ORG
:-$(
git remote get-url
"
$UPSTREAM_REMOTE
"
|
awk
-F
'[@:./]'
'NR==1{print $4
}'
)}
MAIN_REPO_NAME
=
${
MAIN_REPO_NAME
:-$(
git remote get-url
"
$UPSTREAM_REMOTE
"
|
awk
-F
'[@:./]'
'NR==1{print $5
}'
)}
MAIN_REPO_ORG
=
${
MAIN_REPO_ORG
:-$(
git remote get-url
"
$UPSTREAM_REMOTE
"
|
awk
'{gsub(/http[s]:\/\/|git@/,"")}1'
|
awk
-F
'[@:./]'
'NR==1{print $3
}'
)}
MAIN_REPO_NAME
=
${
MAIN_REPO_NAME
:-$(
git remote get-url
"
$UPSTREAM_REMOTE
"
|
awk
'{gsub(/http[s]:\/\/|git@/,"")}1'
|
awk
-F
'[@:./]'
'NR==1{print $4
}'
)}
if
[[
-z
${
GITHUB_USER
:-}
]]
;
then
echo
"Please export GITHUB_USER=<your-user> (or GH organization, if that's where your fork lives)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment