From 5a955556725772e50075f228f243dda8fd1da440 Mon Sep 17 00:00:00 2001 From: James Downie Date: Mon, 14 Jul 2025 21:05:41 +1000 Subject: [PATCH] Lazy commit on fry. --- jdownie/repo/repo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jdownie/repo/repo b/jdownie/repo/repo index ad471b1..d96f2e4 100755 --- a/jdownie/repo/repo +++ b/jdownie/repo/repo @@ -119,6 +119,7 @@ def isFossil(cfg): def perform_action(action, key, item, silent = False): output = None + hn = hostname() lbl = "{0}ing".format(action).title() if os.path.exists(os.path.expanduser(item["path"])): if action in list([ "pull", "push", "fetch" ]): @@ -157,7 +158,7 @@ def perform_action(action, key, item, silent = False): cwd = Path(os.path.expanduser(item["path"])) cmd = f"fossil add ." output = execute_command(cmd, cwd=cwd) - cmd = f"fossil commit -m \"Lazy commit on {hostname}\"" + cmd = f"fossil commit -m \"Lazy commit on {hn}\"" output = execute_command(cmd, cwd=cwd) else: cmd = "git -C \"{0}\" status --porcelain".format(os.path.expanduser(item["path"])) @@ -166,7 +167,7 @@ def perform_action(action, key, item, silent = False): print("Lazy committing {0}...".format(key)) cmd = "git -C \"{0}\" add .".format(os.path.expanduser(item["path"])) output = execute_command(cmd) - cmd = "git -C \"{0}\" commit -m \"Lazy commit on {1}.\"".format(os.path.expanduser(item["path"]), hostname) + cmd = "git -C \"{0}\" commit -m \"Lazy commit on {1}.\"".format(os.path.expanduser(item["path"]), hn) output = execute_command(cmd) rm(filepath("status")) return output