From 251b54937be78909e1285d16bce957706fb293a7 Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 5 Aug 2025 14:13:27 -0400 Subject: [PATCH] Use --detached worktrees --- openwrtbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index 8215895..99ae06d 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 --detached "$BUILD_DIR" "$ref" # Print commit info commit=$(git -C "$BUILD_DIR" rev-parse HEAD)