-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug/Feature]Problems with git #1266
Comments
I don't think this is an issue with AndroidIDE. You should check if you have push access to the remote repository. You can't push to repository which you don't have access to. |
@itsaky Does not plan mean you would not accept a patch if one was made for it? |
Okay, I'll see what I can do. But, can you answer these questions first? :
|
Some of your questions I feel I have already answered and it making me frustrated so please forgive as I try to work with you on this and as
I hear you say ahhh here is your problem you didn't clone wright? I won't lie it could be but in your document you said to feel free to let you know of any issues you're having(I thought so they can be fix) I thought that this might be a problem so I tried reclone again but it told me it already was cloned and didn't tell me where it cloned to. So after dig though the file system look at android/data for a long time I discover Great this is cool make total sense 👍 Since I have files it tells me that it probably clone correctly (it probably not the case and doesn't effect permission). Google the error tells you git doesn't like the .git directory permissions.
As far as I know no I used things pretty much as default.
I have tried clone several. There a lot of things I have to try yet I was going to document them as I tried them but I thought you would only want to work on one thing at a time Am I wrong?
Just for your info I told you what caused the error and a quick Google search of the error IMHO will lead you to the same conclusion. Git doesn't want to be pulled by just any user.
Then look at the user with ls and whoamI. You can see what I mean. While I probably could do a workaround just by just cloning from the terminal or use git config or ad safe directory it doesn't seem to be the correct way to do it. As a developer I would have to know a lot more know about your project end goal before I could fix this myself, for example if you're going to make this work on Google play or latter version of Android the git client probably should be moved to a plugin. One thing that seem cool to me is the( android terminal program you using) talked about pack each program it uses in a APK installable on Google play. They had a link to a website but it is broken. I can see why they would not want to support all there package and way this was abandoned, but for a project such as Androidide where only a small sunset of program are supported this IMHO would be great. Please note I use my tablet for almost everything. I have program using aide in the past Wich is just full of bug(but it includes the NDK) I have done a little in the past on the desktop but got real annoyed by the sluggish behave and there stupid emulator in android studio. I have gotten rid of my desktop because work has always kept me busy and never gave me any free time to do anything. Covid changed a lot for me and know I give myself time and I would like to help with beta testing when people allow me to. I can't report anything if they keep closing issues without fixing problems. There's a lot I would like to do but I need androidaide to work on androidaide first. There is also a lot I would like to know like if you plan on making this # available on Google Play (hard to do I know) The terminal you are using doesn't support it. I do my research. |
do you clone using terminal or using Clone Git in the app? if terminal, you could set your git users |
Thank you for your reply I was using the app but from what I can see as right now you probably better off using the terminal. I have a lot more testing I have to do yet though but just write really stress me out . I try to talk about problem before I attempt any fix. I haven't been able to do much as of right now because of my lack of knowledge, poor communication skills, lack of time etc. I could really use words of encouragement every once in awhile. |
@itsaky update on bug hunt
I don't want to keep bothering you I don't want to duplicate work Things I have triedInterestingly if you create a directory in androidaide it doesn't create it for the user you are
I also installed the github client
|
Try configuring Git again, this works fine for me VID-20230917-WA0000.2.mp4 |
I tried running git init still having same problem doesn't change user name of .git folder. I using android-10 so most of my problems I think are thanks to that. It looks like a lot has change (with permission and execution) on Android-10+. Currently I am looking at resources for explaining what going on in android-10 such as wr permission and This I plan to post more when i find it. |
Just analyze this output. Your directory is not accessible to users other than "root" or users who are part of group "everybody". Check if your current user can access the directory.
AndroidIDE doesn't decide the user while opening the terminal or doing anything else. AndroidIDE won't even be able to change the user unless you do it yourself. I don't think this issue originates from AndroidIDE. If you do, then at least provide steps so that we can reproduce this on our own devices. |
@itsaky Setting it to android -10 ( or use anything above) should do. I read on one of issue ( I think somewhere in termux issue )that it is not possibly to change the user.
Yep, I think termux calls an android service Wich has root. Please note it also says root. My tablet not rooted. I was hoping to find someone who knows more about permission on Android I thought open issues allowed for that. people don't typically read closed one. If you are saying you aren't going to support android-10 or above then I can expect this I guess. By the way my tablet is not rooted and it shows root. Android handle permissions very strangely. |
What happened?
When trying to update git with
≥Git pull
It failed failed with 'fatal: detected dubious ownership in repository at'
Doing a Google search on this error tell me that the owner ship of the **.git ** folder is not correct.
I not sure weather to mark this as a bug or feature request but we really should have a way to update git from the ide it self or at least use the correct user.
What's the expected behavior?
ls -a of a git directory should return the same as the terminal user.
I sorry if I am miss categorizeing this. I am a little disappointed that you don't include git by default even though you have clone from the menu this alone is very confusing and undocumented but even after you install git you have a problem with it failing because you are using a user that everyone has access to. This to me seems something I would consider a bug or on the other hand I made a similar issue stating it wasn't in the path and you closed it without documenting it(so maybe you would prefer to have this mark as a feature request)
In summary. I thought my old issue would remain open so people can find the solution and post problems there having with git.
Since it really is a different issue I figure I posted it and ask you please help me move tag it better.
What version of AndroidIDE you're using?
v2.5.2 (debug builds)
Relevant log output
git push failed with 'fatal: detected dubious ownership in repository at'
Then run
User should be the same but is not.
Duplicate issues
Code of Conduct
The text was updated successfully, but these errors were encountered: