]> git.pld-linux.org Git - packages/gitlab-ce.git/commitdiff
gitlab-rake: show tasks list if no arg specified
authorElan Ruusamäe <glen@delfi.ee>
Sun, 21 Aug 2016 21:01:33 +0000 (00:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 21 Aug 2016 21:01:33 +0000 (00:01 +0300)
gitlab-rake.sh

index d5f61ffd4562a815281c38dac6dc7fc284efb4ab..db30222bc59a0a0e8e0a30980c5c85dcef4081fb 100755 (executable)
@@ -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 "$@"
This page took 0.066304 seconds and 4 git commands to generate.