commit f7036eeed0efea688cbcf576650c654aa2e0e398
Author: Elan Ruusamäe <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to