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
Internal exception occured. Message from jgit: HEAD is detached #162
Comments
I finally manage to access internal repo with root access. Regards, Xavier Logerais. PS: Thanks for your work ! I like your software. |
We should not lock the user in a detached HEAD state. |
Thanks @xlogerais for the issue. This should not happen as we do not give the user a direct access to the git repository, hence doing a reset or a rebase --abort is not possible directly. |
I just ran into this issue on a non-rooted device. Is there any way to recover from this, short of cleaning the app's data and re-configuring it? |
@lekv are you using the PlayStore version or the F-Droid version? |
The one from the play store. |
I will try to provide an apk with an option to do the |
I was able to fix it by just re-checking out the repository, after re-visiting the git log on my desktop and making sure that I'll keep all but one current pw - so this is not urgent. Thanks for the help. |
good then :) |
This is difficult for the developers and impossible for the users to even diagnose properly, because the message should not be this uninformative. Issue #219 requests better treatment of exceptions like this one. |
I've encountered this and am struggling to work around it, any suggestions? On the server I'm trying to synchronise from I've followed these steps for resolving a detached head but Password-Store still reports a detached head when I try to synchronise or pull from it. I'm using v1.2.0.57 from the F-Droid store. |
The issue is that you're in a detached head in the app itself. This happens during the git rebase, maybe we could offer a way to detect it. |
Ah ok, would a working solution be to delete the current existing store in the application (i.e. the directory I saved it to) and then re-sync as @lekv suggested further up? |
Yes, that would be a "solution". Please bear in mind that if you got into a detached head, that means that you made changes that (most probably) are not on your server. |
Thanks, went with that option, any changes I made under Android will have been by mistake. |
I know this thread is a bit stale, but could you allow someone to create a branch at the detached head? Then this could be pushed to a real computer where the conflict could be resolved. |
I got this message after making some changes at the remote, and simultaneously making some changes in the app. The changes should have not conflicted, but would need to be merged. |
I'm also using the play store app. |
I guess it would be nice to be able to show local changes, commit them, or merge them, from the app. |
Indeed, or maybe even dropping to the command line would suffice, if it's possible. |
I guess it would be nice to be able to show local changes, commit them, or merge them, from the app.
Indeed, or maybe even dropping to the command line would suffice, if
it's possible.
Let's not over-design for this. The basic problem – the user has no way in the app to resolve a detached HEAD – doesn't require a full-blown Git UI. Something much simpler would suffice to resolve this bug.
…--
\
`\
_o__) Ben Finney <ben@benfinney.id.au>
|
Yes, and I was just hit again by this today, so a working solution would be much appreciated. |
Seconded. The only I was able to repair it was to delete the local repo
from my phone, and re-clone it.
|
Moving changes in the app to a branch on conflict and pushing this to the git server would be a nice workaround. Would it be okay to open a bug bounty for this? |
I opened a PR for this. This PR will allow you to push your local branch to another branch and stop the rebase. This way, you can clean the conflicts on your own machine. |
I'm having this same issue. I see #508 is a fix as @zeapo explains:
Can you clarify how to actually do this? I have added a lot of passwords to my phone in this corrupted state so am worried about losing them if I just delete/re-clone. Thank you for this fix and for Android Password Store! |
If I'm not mistaken, you need to go to the Settings and, in the Git section, go to Edit configuration. |
bump. Internal exeception occured No idea how i came to the detached head within the application, the other two (computer) clients had no problem syncing. |
Please don't bump old issues, file new ones (properly following the template) if you come across regressions. |
I get the following error when trying to pull from remote :
Internal exeception occured
Message from jgit:
HEAD is detached
I don't know what happened, but it already worked.
I'm not using external repository option so I don't know if it is possible to "inspect" directory structure from command line to debug.
Is the "internal" directory structure accessible to the user ?
The text was updated successfully, but these errors were encountered: