From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 32FB91F4C1 for ; Thu, 1 Dec 2022 11:21:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669893693; bh=BYjD5KSQd8A9lVSJRbVU1pTICqxSe6KCzWEjlNiNKL0=; h=From:To:Subject:Date:From; b=ourc7/qzHsNXuKSBl6grlFTOMU4S4e/GvkbOzaUAy8sVjxhwNMDt43jFDm18tNcLt OgkQShDZc7LlgyL1hJsUuXnmJJlCxB4lG4l5AHzRQOlj9otU4bXPOrEv7v+gImhVoH liJYSAWipM14Jba9zoPyuAs3Py0JF2szgtCVfJqo= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] lei - expanding relative paths for `lei up' Date: Thu, 1 Dec 2022 11:21:30 +0000 Message-Id: <20221201112132.4005900-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I ran `lei q --only ./ -o $MAILDIR $QUERY' at some point from inside an inboxdir. Then I got confused when `lei up --all' running from $HOME started complaining about $HOME/objects being missing from ALE. It turned out $HOME/public-inbox (one of my worktrees) was causing $HOME to false-positive as a v1 public-inbox for lei :x. So this is a two-pronged fix to prevent some weird stuff from happening. Eric Wong (2): lei: stricter external checks for valid $GIT_DIR/objects lei_saved_search: expand only/include/exclude to absolute paths lib/PublicInbox/LeiQuery.pm | 23 ++++++++++++++++++++--- lib/PublicInbox/LeiXSearch.pm | 14 ++++++++++---- t/lei-q-save.t | 13 +++++++++---- t/lei.t | 3 ++- 4 files changed, 41 insertions(+), 12 deletions(-)