Sync charm-helpers
This commit is contained in:
parent
dbb56bf872
commit
467a548667
@ -50,10 +50,9 @@ class GitUrlFetchHandler(BaseFetchHandler):
|
|||||||
raise UnhandledSource("Cannot handle {}".format(source))
|
raise UnhandledSource("Cannot handle {}".format(source))
|
||||||
|
|
||||||
if depth:
|
if depth:
|
||||||
repo = Repo.clone_from(source, dest, depth=depth)
|
repo = Repo.clone_from(source, dest, branch=branch, depth=depth)
|
||||||
else:
|
else:
|
||||||
repo = Repo.clone_from(source, dest)
|
repo = Repo.clone_from(source, dest, branch=branch)
|
||||||
repo.git.checkout(branch)
|
|
||||||
|
|
||||||
def install(self, source, branch="master", dest=None, depth=None):
|
def install(self, source, branch="master", dest=None, depth=None):
|
||||||
url_parts = self.parse_url(source)
|
url_parts = self.parse_url(source)
|
||||||
|
Loading…
Reference in New Issue
Block a user