fatal: 'ITK/Modules/ThirdParty/GDCM/work/extract' is a missing but already registered worktree;

mathieu.malaterre
Mon, 07 Oct 2019 12:28:28 +0000
Engineering

Hi there,

I am trying to update GDCM module, and I have tried a naive:

$ cd ~/ITK.git/Modules/ThirdParty/GDCM
$ ./UpdateFromUpstream.sh

But this fails with:

Cloning into '/home/mmalaterre/workspace/ITK-upstream/Modules/ThirdParty/GDCM/work/upstream'...
remote: Enumerating objects: 83433, done.
remote: Counting objects: 100% (83433/83433), done.
remote: Compressing objects: 100% (18384/18384), done.
remote: Total 83433 (delta 66090), reused 81994 (delta 64835)
Receiving objects: 100% (83433/83433), 24.39 MiB | 3.43 MiB/s, done.
Resolving deltas: 100% (66090/66090), done.
++ '[' -n 8f5c7d0c3a5792d33395b239700f1cbe1442c129 ']'
++ git worktree add /home/mmalaterre/workspace/ITK-upstream/Modules/ThirdParty/GDCM/work/extract 8f5c7d0c3a5792d33395b239700f1cbe1442c129
Preparing worktree (detached HEAD 8f5c7d0c3a)
fatal: '/home/mmalaterre/workspace/ITK-upstream/Modules/ThirdParty/GDCM/work/extract' is a missing but already registered worktree;
use 'add -f' to override, or 'prune' or 'remove' to clear
+ rm -rf /home/mmalaterre/workspace/ITK-upstream/Modules/ThirdParty/GDCM/work

4 posts - 3 participants