Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit c8c957c

Browse files
committed
Merge pull request docker#661 from docker/fix_640
Added git@ as a valid prefix for remote build paths
2 parents d300f5f + b959487 commit c8c957c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
317317
elif fileobj is not None:
318318
context = utils.mkbuildcontext(fileobj)
319319
elif path.startswith(('http://', 'https://',
320-
'git://', 'github.com/')):
320+
'git://', 'github.com/', 'git@')):
321321
remote = path
322322
elif not os.path.isdir(path):
323323
raise TypeError("You must specify a directory to build in path")

0 commit comments

Comments
 (0)