Sync charm-helpers
This commit is contained in:
parent
8fed9963f9
commit
dbb56bf872
@ -50,7 +50,7 @@ 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)
|
repo = Repo.clone_from(source, dest, depth=depth)
|
||||||
else:
|
else:
|
||||||
repo = Repo.clone_from(source, dest)
|
repo = Repo.clone_from(source, dest)
|
||||||
repo.git.checkout(branch)
|
repo.git.checkout(branch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user