From c8f1283f58cdccb109d3736ae2880ef9cb3f3280 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Sat, 26 Jul 2025 01:36:39 -0700 Subject: [PATCH] fix: git -C --- bin/joj3-forge-convert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/joj3-forge-convert b/bin/joj3-forge-convert index 9241e31..ffd81d1 100755 --- a/bin/joj3-forge-convert +++ b/bin/joj3-forge-convert @@ -57,7 +57,7 @@ EOF rsync -a --delete "/home/tt/.config/joj/" "$config_repo_path/home/tt/.config/joj" git -C "$config_repo_path" add home/tt/.config/joj if ! git -C "$config_repo_path" diff --staged --quiet; then - commit_hash=$(git rev-parse HEAD) + commit_hash=$(git -C "$config_repo_path" rev-parse HEAD) git -C "$config_repo_path" commit -m "chore: $commit_hash trigger joj3-forge convert [skip ci]" git -C "$config_repo_path" push fi