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

Re: [PATCH v3 0/1] [BUG] refs: verify does not work if there are v2.43.0 or older worktrees w/o wt. refs

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Jun 2, 2025, 15:01 UTC
Message-ID
<d7265bca-ac47-4610-834d-da91042ccdf0@app.fastmail.com>
In-Reply-To
<aD23w6-szFjKQGSj@ArchLinux>
On Mon, Jun 2, 2025, at 16:40, shejialuo wrote:
Show 29 quoted lines
> [snip]
>
> Range-diff against v2:
> 1:  d949a8a646 ! 1:  e4c32971da fsck: ignore missing "refs" directory
> for linked worktrees
>     @@ t/t0602-reffiles-fsck.sh: test_expect_success 'ref name check
> should be adapted
>      +		test_commit initial &&
>      +		git worktree add --detach ./worktree &&
>      +
>     -+		cd worktree &&
>     -+		worktree_refdir="$(git rev-parse --git-dir)/refs" &&
>     -+		# Simulate old directory layout
>     -+		rmdir "$worktree_refdir" &&
>     -+		git refs verify 2>err &&
>     -+		test_must_be_empty err
>     ++		(
>     ++			cd worktree &&
>     ++			worktree_refdir="$(git rev-parse --git-dir)/refs" &&
>     ++			# Simulate old directory layout
>     ++			rmdir "$worktree_refdir" &&
>     ++			git refs verify 2>err &&
>     ++			test_must_be_empty err
>     ++		)
>      +	)
>      +'
>      +
> --
> 2.49.0
This version works as well.  Thanks!
    $ git range-diff --no-color --no-notes --inter-hunk-context=1 --ignore-all-space <range>
    1:  ddbf0f8cf4c ! 1:  ce802ef6698 fsck: ignore missing "refs" directory for linked worktrees
        @@ t/t0602-reffiles-fsck.sh: test_expect_success 'ref name check should be adapted
         +          test_commit initial &&
         +          git worktree add --detach ./worktree &&
         +
        ++          (
         +                  cd worktree &&
         +                  worktree_refdir="$(git rev-parse --git-dir)/refs" &&
         +                  # Simulate old directory layout
         +                  rmdir "$worktree_refdir" &&
         +                  git refs verify 2>err &&
         +                  test_must_be_empty err
         +          )
        ++  )
         +'
         +
          test_expect_success 'ref name check should work for multiple worktrees' '
Previous: shejialuo
Message 21 of 21 in “[BUG] refs: verify does not work if there are v2.43.0 or older worktrees w/o wt. refs”
  1. kristofferhaugsbakk@fastmail.comMay 30, 2025
  2. Eric SunshineMay 30, 2025
  3. shejialuoMay 31, 2025
  4. Kristoffer HaugsbakkMay 31, 2025
  5. fsck: ignore missing "refs" directory for linked worktreesshejialuo, May 31, 2025
  6. Kristoffer HaugsbakkMay 31, 2025
  7. Junio C HamanoJun 2, 2025
  8. shejialuoJun 2, 2025
  9. Phillip WoodJun 2, 2025
  10. Patrick SteinhardtJun 2, 2025
  11. phillip.wood123@gmail.comJun 2, 2025
  12. Junio C HamanoJun 2, 2025
  13. shejialuoJun 2, 2025
  14. shejialuoJun 2, 2025
  15. 0/1 [BUG] refs: verify does not work if there are v2.43.0 or older worktrees w/o wt. refsshejialuo, Jun 2, 2025
  16. 1/1 fsck: ignore missing "refs" directory for linked worktreesshejialuo, Jun 2, 2025
  17. Kristoffer HaugsbakkJun 2, 2025
  18. shejialuoJun 2, 2025
  19. 0/1 [BUG] refs: verify does not work if there are v2.43.0 or older worktrees w/o wt. refsshejialuo, Jun 2, 2025
  20. 1/1 fsck: ignore missing "refs" directory for linked worktreesshejialuo, Jun 2, 2025
  21. Kristoffer HaugsbakkJun 2, 2025

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.