Skip to content

Commit c156862

Browse files
Fix remote flag
1 parent 34f2959 commit c156862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dokku_cli.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ def git_config
108108
config_file = File.read(config_path)
109109

110110
# Default dokku config: dokku@host.com:app
111-
default_style_regex = /\[remote "dokku"\]\s+url \= dokku@(?<domain>.*):(?<app_name>.*)$/
111+
default_style_regex = /\[remote "#{remote}"\]\s+url \= dokku@(?<domain>.*):(?<app_name>.*)$/
112112
match ||= config_file.match(default_style_regex)
113113

114114
# SSH dokku config: ssh://dokku@host.com:1337/app
115-
ssh_style_regex = /\[remote "dokku"\]\s+url \= ssh:\/\/dokku@(?<domain>.*):(?<port>.*)\/(?<app_name>.*)$/
115+
ssh_style_regex = /\[remote "#{remote}"\]\s+url \= ssh:\/\/dokku@(?<domain>.*):(?<port>.*)\/(?<app_name>.*)$/
116116
match ||= config_file.match(ssh_style_regex)
117117

118118
exit unless match

0 commit comments

Comments
 (0)