Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove lefthook automatic install on setup_dev

Oliver Günthera38fe3c06731
diff --git a/bin/setup_dev b/bin/setup_dev
index e022aef8375..31c40fc77bf 100755
--- a/bin/setup_dev
+++ b/bin/setup_dev
@@ -26,9 +26,6 @@ try 'bundle exec rake openproject:plugins:register_frontend >> log/setup_dev.log
echo "Exporting frontend locale files"
try 'bundle exec rake i18n:js:export >> log/setup_dev.log'
-echo "Setting up git hooks"
-try 'bundle exec lefthook install'
-
echo "---------------------------------------"
echo "Done. Now start the following services"
echo '- Rails server `RAILS_ENV=development bin/rails server`'
@@ -36,3 +33,9 @@ echo '- Angular CLI: `npm run serve`'
echo '- Delayed Job worker: `RAILS_ENV=development bin/rails jobs:work`'
echo ""
echo 'You can also run `foreman start -f Procfile.dev` to run all the above on a single terminal.'
+
+echo ""
+echo 'Setting up git hooks'
+echo 'If you want to have commit hooks for rubocop and eslint errors, you can install lefthook like so:'
+echo '`bundle exec lefthook install`'
+