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))
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user