Re: reflogs and worktrees?

2016-07-09 Thread Johannes Schindelin
t_expect_success 'gc is not aborted due to a stale symref' ' ) ' +test_expect_success 'install pre-auto-gc hook for worktrees' ' + mkdir -p .git/hooks && + write_script .git/hooks/pre-auto-gc <<-\EOF + echo "Preserving refs/reflogs of worktrees" >&2 && +

Re: reflogs and worktrees?

2016-07-05 Thread Duy Nguyen
On Tue, Jul 5, 2016 at 5:07 PM, Johannes Schindelin wrote: > Hi Duy, > > ever since I started working extensively with worktrees, I end up with > these funny gc problems, like broken links and stale reflogs. Yeah we have problem with gc not traversing all worktree

reflogs and worktrees?

2016-07-05 Thread Johannes Schindelin
Hi Duy, ever since I started working extensively with worktrees, I end up with these funny gc problems, like broken links and stale reflogs. Is it maybe possible that the reflogs (which are per-worktree now) are not traversed completely when gc'ing (which is *not* per-worktree)? Ciao, Dscho --