diff --git a/docker/client.py b/docker/client.py index 5cad2ba6..b807f197 100644 --- a/docker/client.py +++ b/docker/client.py @@ -317,7 +317,8 @@ class Client(requests.Session): else: if fileobj is not None: context = utils.mkbuildcontext(fileobj) - elif path.startswith(('http://', 'https://', 'git://', 'github.com/')): + elif path.startswith(('http://', 'https://', + 'git://', 'github.com/')): remote = path else: context = utils.tar(path) diff --git a/tests/test.py b/tests/test.py index a7f410af..bfe0addc 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1245,7 +1245,6 @@ class DockerClientTest(unittest.TestCase): except Exception as e: self.fail('Command should not raise exception: {0}'.format(e)) - ####################### # PY SPECIFIC TESTS # #######################