CypherpunkArmory / UserLAnd

Main UserLAnd Repository
Other
3.45k stars 385 forks source link

Error git clone inside sdcard #432

Open fera765 opened 5 years ago

fera765 commented 5 years ago

lord@localhost:/storage$ git clone https://github.com/adonisjs/adonis-fullstack-app.git Cloning into 'adonis-fullstack-app'... remote: Enumerating objects: 323, done. remote: Total 323 (delta 0), reused 0 (delta 0), pack-reused 323 Receiving objects: 100% (323/323), 203.97 KiB | 722.00 KiB/s, done. Resolving deltas: 100% (158/158), done. error: unable to write sha1 filename /storage/adonis-fullstack-app/.git/objects/pack/pack-74b4d7c222e00df89a8e4401d22b83c2f10051af.pack: No such file or directory fatal: cannot store pack file fatal: index-pack failed

corbinlc commented 5 years ago

Does doing the same git clone within the rootfs, like at /home/username, work?

fera765 commented 5 years ago

when doing git clone inside "/home/username", it works yes..

But I can not access this directory with es file explorer, since I do not have root permission on my Android.

fera765 commented 5 years ago

now with the termux I can give git clone inside the sdcard and not of the error none

corbinlc commented 5 years ago

I am guessing this is a proot issue. We will have to debug.

Kinuseka commented 3 years ago

This is still an issue for me

Nick8Sk commented 1 week ago

I have the same problem with git clone in any root directory of the phone (I don't have root access on Android). A working strategy for me is to clone the repository into /home/username and then move it to /Downloads: mv -r rep/ /mnt/sdcard/Downloads/rep/ (surprisingly, this works for me). Then I can see and use this repository in Android applications (file manager, etc.), while being able to work with git for this repository (jast copy it back to /home/username).