Skip to content
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

Git Commands Stuck Forever #1640

Open
meherranjan opened this issue Dec 3, 2021 · 4 comments
Open

Git Commands Stuck Forever #1640

meherranjan opened this issue Dec 3, 2021 · 4 comments

Comments

@meherranjan
Copy link

@meherranjan meherranjan commented Dec 3, 2021

I have been using ISH with Obsidian app to sync my iPhone 13 Pro notes to Git. Initially, git add used to get stuck then I tried git gc, git gc --aggressive, git gc --prune=now etc to cleanup blobs and dangling objects.
It worked on some cases, but lately the complete git ecosystem is down for me. git status works, git add . and git commit gets stuck on random files.

I tried to run git fsck to check the status and there are no hints. I also tried to run GIT_TRACE2_PERF prefix set to 1 to see I could see pointers, but nothing shows up. My git repo has 1650 objects based on 'git fsck' output and number of uncommitted files are handful. And considering they are just markdown text noted and I am trying to even 'git add' single files and even that gets stuck.
Lastly, I also added commit.verbose to true but I don't see any message.

I haven't tried re-installing the app yet because I would have to setup configurations etc. Any inputs?

@onatbas
Copy link

@onatbas onatbas commented Dec 28, 2021

I have the same deal. git clone, git fetch etc., all get stuck during the “resolving delta” step. It may be a completely different issue as I find that ish is incredibly slow these days. I could compile a project in 10 minutes , yet the same project took about 4 hours to compile today. This could be related to iOS 15.

@saagarjha
Copy link
Member

@saagarjha saagarjha commented Dec 28, 2021

You’re probably running into #943.

@meherranjan
Copy link
Author

@meherranjan meherranjan commented Dec 28, 2021

Thanks @saagarjha for pointing to the thread.

I noticed an 'Upgrade Repositories' notification in the Settings and it upgraded my git from 2.26.3-r0 to 2.32.0-r0
I did little tests and didn't notice any issue yet, I will use iSH & Obsidian more frequently to come to a conclusion though.

In case, it occurs again, I will run git config --global pack.threads "1" as mentioned in the other thread to see if it resolves the issue. It seems to be working well for many.

@DannyQuah
Copy link

@DannyQuah DannyQuah commented Jan 2, 2022

Just to say I'm having the same issue on my iPad Model A1709 (iPad Pro 10.5in 1st gen), git 2.34.1-r0. I activated single-threading and that worked for a while resolving deltas. But now I'm stuck forever even at a git commit, while a git add can take up to a minute or more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants