mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-06-10 11:56:44 +02:00
Passing branch to update_package()
Solves the problem where script dies when running it and having an existing 'repo' folder checked out.
This commit is contained in:
parent
ed737e22ee
commit
f725796ac2
@ -414,7 +414,7 @@ def main():
|
||||
if os.path.isdir('./repo'):
|
||||
print(f"Package devicetype-library is already installed, "
|
||||
+ f"updating {os.path.join(cwd, 'repo')}")
|
||||
update_package('./repo')
|
||||
update_package('./repo', branch=args.branch)
|
||||
else:
|
||||
repo = Repo.clone_from(args.url, os.path.join(cwd, 'repo'), branch=args.branch)
|
||||
print(f"Package Installed {repo.remotes.origin.url}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user