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:
bf223b0
)
Revert git command changes (#502)
author
Sam
<sam.saffron@gmail.com>
Fri, 11 Dec 2020 06:29:24 +0000
(17:29 +1100)
committer
GitHub
<noreply@github.com>
Fri, 11 Dec 2020 06:29:24 +0000
(17:29 +1100)
* Revert "FIX: reset takes the full slash path (#501)"
This reverts commit
bf223b05427d432d6ab313eb7740d42caa989c6a
.
* Revert "FIX: Run reset and clean after checkout (#500)"
This reverts commit
bc380c73eef970e57195159a654edd2b14fb633b
.
* Revert "FIX: remove pull for Discourse core (#499)"
This reverts commit
0ab1da11598467b944182748b8e8c6d363093544
.
templates/web.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/web.template.yml
b/templates/web.template.yml
index ab6ba734c127716a7d8c50ecd430f7e576b30e52..eb377ae4ea920d93a07ddaafe24c488ad9b67fe0 100644
(file)
--- a/
templates/web.template.yml
+++ b/
templates/web.template.yml
@@
-86,12
+86,13
@@
run:
cd: $home
hook: code
cmd:
+ - git reset --hard
+ - git clean -f
- git remote set-branches --add origin master
+ - git pull
- git remote set-branches origin $version
- git fetch --depth 1 origin $version
- git checkout $version
- - git reset --hard origin/$version
- - git clean -f
- mkdir -p tmp
- chown discourse:www-data tmp
- mkdir -p tmp/pids