[packages/gitlab-ce] gitlab-rake: show tasks list if no arg specified
glen
glen at pld-linux.org
Sun Aug 21 23:02:04 CEST 2016
commit f7036eeed0efea688cbcf576650c654aa2e0e398
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 22 00:01:33 2016 +0300
gitlab-rake: show tasks list if no arg specified
gitlab-rake.sh | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gitlab-rake.sh b/gitlab-rake.sh
index d5f61ff..db30222 100755
--- a/gitlab-rake.sh
+++ b/gitlab-rake.sh
@@ -16,5 +16,10 @@ do
unset $ruby_env_var
done
+# Rake with no params does nothing useful
+# (currently it switches env production->test and then fails)
+# so instead show defined tasks
+test $# = 0 && set -- -T
+
cd /var/lib/gitlab
exec sudo -u git bundle exec rake RAILS_ENV=production "$@"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/f7036eeed0efea688cbcf576650c654aa2e0e398
More information about the pld-cvs-commit
mailing list