Jump to content

NilloPillo

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by NilloPillo

  1. Hey, Ran into this issue as well because I deleted the repo while having a bunch of files locked out. I managed to automate the unlocking process for hundreds of files with a batch script. 

    First use "cm listlocks > out.txt" to save the output to a txt file. Open the txt file (I was using Rider to do this) and delete everything except for the hashes. on each line add cm lock unlock at the start of the line (so you end up with something like this:

    cm lock unlock 7525e94c-2722-41b9-953f-a4011cffc932
    cm lock unlock aa8e7596-0a5c-4242-b743-279dac99ab9e
    cm lock unlock c60a72a1-80dc-4522-bf15-6fa40a0aeda7
    cm lock unlock 4577883f-c479-4359-988e-82ca40fcf798
    cm lock unlock f20db7f1-01cf-4dc9-8e9c-30ea944d2a2b

    Save that file as "unlock.bat" or whatever name with the .bat extension. Open a cmd in the repo directory and press tab until you get the .bat file you just made, hit enter and watch it unlock all your files (albeit very slowly, it will do it automatically). 

    Hope that helps anyone out there in lock hell!

    -Nils

×
×
  • Create New...