git add imported assets

This commit is contained in:
evilchili 2022-09-17 16:50:55 -07:00
parent 64bed4bbb1
commit 8efcd70512

View File

@ -88,6 +88,7 @@ def watch() -> None:
continue
print(f"{target}: importing...")
src.link_to(target)
subprocess.run(shlex.split(f'git add {target}'))
uri = target.relative_to('content')
assets.append(f"https://{CONFIG['production_host']}/{uri}")
src.unlink()