Skip to content

Commit 3ea1730

Browse files
committed
Fixed #127 -- use re.search since re.match always matches string start.
1 parent 1fe584f commit 3ea1730

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/deis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def get_formation(self):
119119
# try to match a deis remote
120120
remotes = subprocess.check_output(['git', 'remote', '-v'],
121121
cwd=git_root)
122-
m = re.match(r'^deis\W+(?P<url>\S+)\W+\(', remotes, re.MULTILINE)
122+
m = re.search(r'^deis\W+(?P<url>\S+)\W+\(', remotes, re.MULTILINE)
123123
if not m:
124124
raise EnvironmentError(
125125
'Could not find deis remote in `git remote -v`')

0 commit comments

Comments
 (0)