Skip to content

Commit 5f09b66

Browse files
committed
Checkout rather than reset
1 parent 02c599b commit 5f09b66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deployment/remote_deploy_script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cd /home/web2py/__SSH_HOSTNAME__/applications/OZtree
1111
echo "Checking out $1"
1212
GIT_SHA=$1
1313
export GIT_SHA
14-
su -m web2py -c 'git fetch origin && git reset --hard -- "$GIT_SHA"'
14+
su -m web2py -c 'git fetch origin && git checkout --detach "$GIT_SHA"'
1515
su -m web2py -c 'grunt dev'
1616
supervisorctl restart '__SSH_HOSTNAME__:*'
1717

0 commit comments

Comments
 (0)