lib/gl.rb in gl-0.4.0 vs lib/gl.rb in gl-0.4.1
- old
+ new
@@ -24,10 +24,10 @@
end
end
def self.open_in_browser(url)
url = "#{Gitlab.endpoint.gsub('api/v4', '')}#{url}"
- `sensible-browser #{url}`
+ `sensible-browser #{url} > /dev/null 2>&1`
end
def self.validate_endpoint!
return if Net::HTTP.get(URI("#{Gitlab.endpoint}version")) == '{"message":"401 Unauthorized"}'