Dev-Environments / VScode

25 stars 3 forks source link

[Bug]: Git clone is not working #7

Open l3ochan opened 1 year ago

l3ochan commented 1 year ago

Is there an existing issue for this?

OS/Platform Information

Steps to Reproduce

  1. Open VScode
  2. try to git clone a repository using terminal (or command palette)

Expected

Repository should be downloaded and clonned

Actual

Repository is not cloned.

Alert Dialog

Here is the error log: root@localhost:/internal-storage/test# git clone https://github.com/l3eochan/comptegouteauto.git Cloning into 'comptegouteauto'... remote: Enumerating objects: 38, done. remote: Counting objects: 100% (38/38), done. remote: Compressing objects: 100% (31/31), done. remote: Total 38 (delta 7), reused 4 (delta 1), pack-reused 0 Receiving objects: 100% (38/38), 9.93 KiB | 61.00 KiB/s, done. Resolving deltas: 100% (7/7), done. error: unable to write file /internal-storage/test/comptegouteauto/.git/objects/pack/pack-0fd44c8fab12a9a03403769adbedb84b2fda1a7e.pack: No such file or directory fatal: unable to rename temporary '*.pack' file to '/internal-storage/test/comptegouteauto/.git/objects/pack/pack-0fd44c8fab12a9a03403769adbedb84b2fda1a7e.pack' fatal: fetch-pack: invalid index-pack output`

Screenshot/Video

https://youtu.be/AjmT5Uq6ZW8

Does this issue happen in Previous Version or You a new user?

Notes

I think the apps is missing some permissions. You should allow the user go grant the app access to the internal-storage directory by having you app request all files access. For more advanced users, it would be cool to allow them to grant the app root access through magisk or another root utility.

Dev-Environments commented 1 year ago

Temporarily Git is not working in internal storage. You can use git features in ~/Git folder which is located in sudo su;cd ~/Git. Please read README.md