FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-feedstock/ci_support/checkout_merge_commit.sh at python-debug · looooo/python-feedstock · GitHub
looooo
/
python-feedstock
Public
forked from
conda-forge/python-feedstock
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-feedstock
/
ci_support
/
checkout_merge_commit.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
27 lines (22 loc) · 649 Bytes
Breadcrumbs
python-feedstock
/
ci_support
/
checkout_merge_commit.sh
Copy path
File metadata and controls
executable file
·
27 lines (22 loc) · 649 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!
/bin/bash
#
Update PR refs for testing.
if
[[
-n
"
${CIRCLE_PR_NUMBER}
"
]]
then
FETCH_REFS=
"
${FETCH_REFS}
+refs/pull/
${CIRCLE_PR_NUMBER}
/head:pr/
${CIRCLE_PR_NUMBER}
/head
"
FETCH_REFS=
"
${FETCH_REFS}
+refs/pull/
${CIRCLE_PR_NUMBER}
/merge:pr/
${CIRCLE_PR_NUMBER}
/merge
"
fi
#
Retrieve the refs.
if
[[
-n
"
${CIRCLE_PR_NUMBER}
"
]]
then
git fetch -u origin
${FETCH_REFS}
fi
#
Checkout the PR merge ref.
if
[[
-n
"
${CIRCLE_PR_NUMBER}
"
]]
then
git checkout -qf
"
pr/
${CIRCLE_PR_NUMBER}
/merge
"
fi
#
Check for merge conflicts.
if
[[
-n
"
${CIRCLE_PR_NUMBER}
"
]]
then
git branch --merged
|
grep
"
pr/
${CIRCLE_PR_NUMBER}
/head
"
>
/dev/null
fi
Back
|
FazBrowse Home
|
New Git URL