Sync charm-helpers

This commit is contained in:
Corey Bryant 2015-05-02 20:09:17 +00:00
parent dbb56bf872
commit 467a548667

View File

@ -50,10 +50,9 @@ class GitUrlFetchHandler(BaseFetchHandler):
raise UnhandledSource("Cannot handle {}".format(source))
if depth:
repo = Repo.clone_from(source, dest, depth=depth)
repo = Repo.clone_from(source, dest, branch=branch, depth=depth)
else:
repo = Repo.clone_from(source, dest)
repo.git.checkout(branch)
repo = Repo.clone_from(source, dest, branch=branch)
def install(self, source, branch="master", dest=None, depth=None):
url_parts = self.parse_url(source)