From 8efcd70512355f92ad6c3f5dc0f7d18c1601e56b Mon Sep 17 00:00:00 2001 From: evilchili Date: Sat, 17 Sep 2022 16:50:55 -0700 Subject: [PATCH] git add imported assets --- deadsands/site_tools/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deadsands/site_tools/cli.py b/deadsands/site_tools/cli.py index 4188b8e..d017780 100644 --- a/deadsands/site_tools/cli.py +++ b/deadsands/site_tools/cli.py @@ -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()