File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 9696 hook : code
9797 cmd :
9898 - sudo -H -E -u discourse git clean -f
99- # TODO Remove the special handling of shallow clones when everyone uses images without that clone type
100- - |-
101- sudo -H -E -u discourse bash -c '
102- set -o errexit
103- if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
104- git remote set-branches --add origin main
105- git remote set-branches origin $version
106- git fetch --depth 1 origin $version
107- else
108- git fetch --tags --prune-tags --prune --force origin
109- fi
110- '
11199 - |-
112100 sudo -H -E -u discourse bash -c '
113101 set -o errexit
102+ git fetch --tags --prune-tags --prune --force origin
114103 if [[ $(git symbolic-ref --short HEAD) == $version ]] ; then
115104 git pull
116105 else
You can’t perform that action at this time.
0 commit comments