From a7a85ee67a37c366b4346854f422314a0da5230e Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 5 Aug 2025 14:14:16 -0400 Subject: [PATCH] Use --detached worktrees --- openwrtbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index 8215895..6740bcd 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -534,7 +534,7 @@ from_source() { execute rm -rf "$BUILD_DIR" fi execute git -C "$SRC_DIR" worktree prune --verbose - execute git -C "$SRC_DIR" worktree add "$BUILD_DIR" "$ref" + execute git -C "$SRC_DIR" worktree add --detach "$BUILD_DIR" "$ref" # Print commit info commit=$(git -C "$BUILD_DIR" rev-parse HEAD)