diff --git a/openwrtbuilder b/openwrtbuilder index 4305919..3eb3ed4 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -543,7 +543,7 @@ from_source() { echo "Current commit hash: $commit" echo "Git worktree description: $description" - ((DEBUG)) && git --no-pager -C "$BUILD_DIR" log --all --pretty=format:"%ai %H" | sort -r | head -n1 + ((DEBUG)) && git --no-pager -C "$BUILD_DIR" log -1 # Enter worktree execute pushd "$BUILD_DIR" || return 1