We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cec23c commit 347e510Copy full SHA for 347e510
lib/shipit/commands.rb
@@ -35,11 +35,18 @@ def git(*args)
35
private
36
37
def base_env
38
- @base_env ||= Shipit.env.merge(
39
- 'GITHUB_DOMAIN' => github.domain,
40
- 'GITHUB_TOKEN' => github.token,
41
- 'GIT_ASKPASS' => Shipit::Engine.root.join('lib', 'snippets', 'git-askpass').realpath.to_s
42
- )
+ @base_env ||= begin
+ env = Shipit.env.merge(
+ 'GITHUB_DOMAIN' => github.domain,
+ 'GITHUB_TOKEN' => github.token,
+ )
43
+
44
+ unless Rails.env.development? || Rails.env.test?
45
+ env['GIT_ASKPASS'] = Shipit::Engine.root.join('lib', 'snippets', 'git-askpass').realpath.to_s
46
+ end
47
48
+ env
49
50
end
51
52
def github
0 commit comments