You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do a mirror clone of the repository to rewrite: git clone --mirror git@github.com:bozaro/git-lfs-migrate.git
I ended up with NoClassDefFoundError while trying to run the following step
Rewrite e.g. all *.mp4 video files in the repository:
Following is my full stack. Please note that, I have changed the .git file name and project name, due to security issues.
admin@admin-ThinkPad:~/MyProjects/MiProject_Repo_Mirror$ java -jar git-lfs-migrate.jar -s miproject_android_studio.git -d miproject_android_studio_lfs-migrate-converted.git -g https://myrepository@bitbucket.org/miproject/miproject_android_studio_lfs-migrate-converted.git "*.sqlite" "*.sqlite.zip"
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.HttpClient
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
admin@admin-ThinkPad:~/MyProjects/MiProject_Repo_Mirror$
The text was updated successfully, but these errors were encountered:
@bozaro . Looks like vendors directory is inside git-lfs-migrate.zip file. I am not at all referring the zip file archive in the command. What should be the command to execute?
Currently, I am executing the following command. Please go through it and let me know, the proper command to get it work. java -jar git-lfs-migrate.jar -s miproject_android_studio.git -d miproject_android_studio_lfs-migrate-converted.git -g https://myrepository@bitbucket.org/miproject/miproject_android_studio_lfs-migrate-converted.git "*.sqlite" "*.sqlite.zip"
Command is correct, but vendors directory should presend near git-lfs-migrate.jar.
So, you simply need unpack whole .zip-archive and run command without moving/deleting files.
Hi,
I have completed following steps (https://github.com/git-lfs/git-lfs/wiki/Tutorial#migrating-existing-repository-data-to-lfs) to migrate existing repository data to LFS, mentioned here.
I ended up with NoClassDefFoundError while trying to run the following step
Following is my full stack. Please note that, I have changed the .git file name and project name, due to security issues.
The text was updated successfully, but these errors were encountered: