maks / MGit

A Git client for Android.
https://manichord.com/projects/mgit.html
GNU General Public License v3.0
1.25k stars 167 forks source link

Clone confused: "Repository already present!" #477

Open ericu opened 5 years ago

ericu commented 5 years ago

I just installed MGit this morning, and have been grabbing a bunch of my repos from GitHub. I've been doing it by browsing my list in OctoDroid and clicking on the repo URLs, e.g. https://github.com/ericu/CellCulTuring, then selecting "clone and download with MGit/Just once". Most of my repos are private, in case it matters.

I've cloned https://github.com/ericu/bcd3, but have been unable to pull down https://github.com/ericu/bcd. Each time I try to clone bcd, it just opens bcd3 with a flashed message "Repository already present!". Is it doing some sort of substring match and getting confused? This is the only one of 5 that's had a problem, but also the only one whose name is a prefix of another repo.

This is on a OnePlus 5T [A5010] running Android 9, OxygenOS 9.0.7, build ONEPLUS A5010_43_190718.

kb-1000 commented 5 years ago

This really shouldn't happen, and no, such things usually don't happen... but it has been a while since I last tried "Clone with MGit". Also, you should look into /sdcard/Android/data/com.manichord.mgit/files/repo/, possibly the repo already exists but isn't in the database.

ericu commented 5 years ago

I had chosen my Documents directory for my repos, and it's not there with the others. There's no repos directory under sdcard/Android/data/com.manichord.mgit/files either.

On Sun, Aug 4, 2019, 3:32 PM kb1000 notifications@github.com wrote:

This really shouldn't happen, and no, such things usually don't happen... but it has been a while since I last tried "Clone with MGit". Also, you should look into /sdcard/Android/data/com.manichord.mgit/files/repo/, possibly the repo already exists but isn't in the database.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maks/MGit/issues/477?email_source=notifications&email_token=AAREEH43GKIV6W5YS6YBTPLQC3SBHA5CNFSM4IJDUPL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3QC5GY#issuecomment-518008475, or mute the thread https://github.com/notifications/unsubscribe-auth/AAREEH5XZZKLFW6DAH3LP23QC3SBHANCNFSM4IJDUPLQ .

timmy61109 commented 4 years ago

If you delete the repository in the application, it will not directly delete the actual repository. Go to the folder where the repository is placed to delete it.