git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [TopGit PATCH] pre-commit: check .topdeps for valid branches

From
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date
Jun 4, 2009, 09:34 UTC
Message-ID
<20090604093456.GA14548@pengutronix.de>
In-Reply-To
<1243976962-10486-1-git-send-email-bert.wesarg@googlemail.com>
Hi Bert,
Show 16 quoted lines
> diff --git a/hooks/pre-commit.sh b/hooks/pre-commit.sh
> index 8e05a4e..1eae2e8 100644
> --- a/hooks/pre-commit.sh
> +++ b/hooks/pre-commit.sh
> @@ -52,6 +52,9 @@ BEGIN      { in_hunk = 0; }
>  /^[^@ +-]/ { in_hunk = 0; }
>  ' |
>  	while read newly_added; do
> +		ref_exists "$newly_added" ||
> +			die "Invalid branch as dependent: $newly_added"
> +
>  		# deps can be non-tgish but we can't run recurse_deps() on them
>  		ref_exists "refs/top-bases/$newly_added" ||
>  			continue
> -- 
> tg: (0f8cd77..) bw/check-valid-deps (depends on: bw/check-for-dep-cycle)

this patch doesn't apply to my branch. I'd say you didn't send out bw/check-for-dep-cycle (or I oversaw it).

Best regards Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |
Previous: Bert WesargNext: Bert Wesarg
Message 2 of 3 in “pre-commit: check .topdeps for valid branches”
  1. pre-commit: check .topdeps for valid branchesBert Wesarg, Jun 2, 2009
  2. Uwe Kleine-KönigJun 4, 2009
  3. Bert WesargJun 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.