summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Petazzoni <maxime.petazzoni@bulix.org>2015-06-30 14:40:11 -0700
committerMaxime Petazzoni <maxime.petazzoni@bulix.org>2015-06-30 14:40:11 -0700
commitc8c957c9831acaabc0cd5bb24eaa6e93a9a99e43 (patch)
treeadfa397131d42041c2729f887be160bf446864f1
parentd300f5f323cd182c30b464334412db3f76be75e1 (diff)
parentb95948711785374a8f8446acb91156b00d0dbc48 (diff)
downloaddocker-py-c8c957c9831acaabc0cd5bb24eaa6e93a9a99e43.tar.gz
Merge pull request #661 from docker/fix_640
Added git@ as a valid prefix for remote build paths
-rw-r--r--docker/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/client.py b/docker/client.py
index 998ebac..0a93248 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -317,7 +317,7 @@ class Client(requests.Session):
elif fileobj is not None:
context = utils.mkbuildcontext(fileobj)
elif path.startswith(('http://', 'https://',
- 'git://', 'github.com/')):
+ 'git://', 'github.com/', 'git@')):
remote = path
elif not os.path.isdir(path):
raise TypeError("You must specify a directory to build in path")