Skip to content

Commit f5312c5

Browse files
author
Gabriel Monroy
committed
switch git remote to ssh:// syntax with 2222/tcp
1 parent 81c9ca4 commit f5312c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

client/deis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def get_app(self):
134134
raise EnvironmentError(
135135
'Could not find deis remote in `git remote -v`')
136136
url = m.groupdict()['url']
137-
m = re.match('\S+:(?P<app>[a-z0-9-]+)(.git)?', url)
137+
m = re.match('\S+/(?P<app>[a-z0-9-]+)(.git)?$', url)
138138
if not m:
139139
raise EnvironmentError("Could not parse: {url}".format(**locals()))
140140
return m.groupdict()['app']
@@ -475,7 +475,7 @@ def apps_create(self, args):
475475
print("done, created {}".format(app_id))
476476
# add a git remote
477477
hostname = urlparse.urlparse(self._settings['controller']).netloc.split(':')[0]
478-
git_remote = "git@{hostname}:{app_id}.git".format(**locals())
478+
git_remote = "ssh://git@{hostname}:2222/{app_id}.git".format(**locals())
479479
try:
480480
subprocess.check_call(
481481
['git', 'remote', 'add', '-f', 'deis', git_remote],

0 commit comments

Comments
 (0)