git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git worktree repair' can't repair when main and linked worktrees are moved
@ 2020-12-04 23:14 Philippe Blain
  2020-12-04 23:21 ` Philippe Blain
  2020-12-05  9:22 ` Eric Sunshine
  0 siblings, 2 replies; 5+ messages in thread
From: Philippe Blain @ 2020-12-04 23:14 UTC (permalink / raw)
  To: Git mailing list; +Cc: Eric Sunshine

Hello,

I've had to move all my Git clones to a new filesystem.
Several of them use secondary worktrees, and all are 
at the same level ex:

$ ls code
git git2 git3 other other2 other3 ...

I had hoped to use the new 'git worktree repair' command
but it seems it does not work for this use case. 

I tried several things:

( cd git && git repair )
( cd git && git repair ../git2 )
( cd git && git repair /old/path/to/old/filesystem/git2 )
( cd git2 && git repair /old/path/to/old/filesystem/git2 )
( cd git2 && git repair ../git )

None of them work. Note that /old/path/to/old/filesystem/
does not exist anymore.

Is this supposed to work ? Or it's not something that 
'git worktree repair' can currently cope with ?

P.S. I know how to repair the worktrees manuallly, I just
wanted to test if 'repair' could help me.

Cheers,

Philippe.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-08 22:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04 23:14 'git worktree repair' can't repair when main and linked worktrees are moved Philippe Blain
2020-12-04 23:21 ` Philippe Blain
2020-12-05  9:22 ` Eric Sunshine
2020-12-08 17:42   ` Eric Sunshine
2020-12-08 22:27     ` Philippe Blain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).