rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.83k stars 535 forks source link

Error: Option --replace-text failed when given '.\passwords.txt'. Input length = 1 #459

Open ntaraujo opened 2 years ago

ntaraujo commented 2 years ago

command in PowerShell:

java -jar C:\Users\USER\Desktop\bfg.jar -rt .\passwords.txt .\REPO\

My current dir is C:\Users\USER\Documents\GitHub\, and the passwords file look like this:

PASSWORD1
PASSWORD2

Why isn't it working? What does the error mean?

sdas-godaddy commented 2 years ago

Did you find out how to fix this?

olaj commented 1 year ago

Weird, i had the same issue but i had named my file "sense.txt". Renamed it to "passwords.txt" and it seemed to work. Maybe it has issues with your dot slash there? .\password.txt

naveenatwork commented 1 year ago

I face the same issue with bfg-1.14.0.jar

ndikea commented 11 months ago

try password.txt, remove 's' from file name

tsaltzman commented 7 months ago

I had this error too. I used windows terminal to create my password file and when I ran BFG I got the same error. When I created the password file via the UI, it worked. I guess it requires UTF-8 encoding.