git add imported assets
This commit is contained in:
@@ -88,6 +88,7 @@ def watch() -> None:
|
|||||||
continue
|
continue
|
||||||
print(f"{target}: importing...")
|
print(f"{target}: importing...")
|
||||||
src.link_to(target)
|
src.link_to(target)
|
||||||
|
subprocess.run(shlex.split(f'git add {target}'))
|
||||||
uri = target.relative_to('content')
|
uri = target.relative_to('content')
|
||||||
assets.append(f"https://{CONFIG['production_host']}/{uri}")
|
assets.append(f"https://{CONFIG['production_host']}/{uri}")
|
||||||
src.unlink()
|
src.unlink()
|
||||||
|
|||||||
Reference in New Issue
Block a user