From f8d5add0cc73d5e5e34cbd5fa76997f5c97b8a4f Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 3 Dec 2016 20:09:58 -0600 Subject: [PATCH] Silence git messages to stdout during app boot. Caused this to be printed every time tests were run: git is /usr/bin/git /home/user/src/danbooru --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 9b37c4b8d..ba75484cc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -24,7 +24,7 @@ module Danbooru if File.exists?("#{config.root}/REVISION") config.x.git_hash = File.read("#{config.root}/REVISION").strip - elsif system("type git && git rev-parse --show-toplevel") + elsif system("type git > /dev/null && git rev-parse --show-toplevel > /dev/null") config.x.git_hash = %x(git rev-parse --short HEAD).strip else config.x.git_hash = nil