projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f7a969
)
templates: abort on fetch error
author
Saj Goonatilleke
<saj@discourse.org>
Thu, 27 Apr 2023 09:29:23 +0000
(19:29 +1000)
committer
Saj Goonatilleke
<saj@discourse.org>
Thu, 27 Apr 2023 09:29:23 +0000
(19:29 +1000)
templates/web.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/web.template.yml
b/templates/web.template.yml
index e37d0d98d56926f9dad26664cfa1fb6ed0bf103e..99965a857b435539b54abfe45280ef4d6b16759a 100644
(file)
--- a/
templates/web.template.yml
+++ b/
templates/web.template.yml
@@
-91,6
+91,7
@@
run:
# TODO Remove the special handling of shallow clones when everyone uses images without that clone type
- |-
sudo -H -E -u discourse bash -c '
+ set -o errexit
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
git remote set-branches --add origin main
git remote set-branches origin $version
@@
-101,6
+102,7
@@
run:
'
- |-
sudo -H -E -u discourse bash -c '
+ set -o errexit
if [[ $(git symbolic-ref --short HEAD) == $version ]] ; then
git pull
else