mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-07 14:09:21 +01:00
Merge pull request #39 from suom1/patch-1
Passing branch to update_package()
This commit is contained in:
commit
9f20f76650
@ -415,7 +415,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…
Reference in New Issue
Block a user