Vinzent03 / obsidian-git

Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md
MIT License
6.96k stars 297 forks source link

[Bug]: broken for ios v16 #423

Open dougpagani opened 1 year ago

dougpagani commented 1 year ago

Describe the bug

Can't initialize on mobile; I'm able to push just fine from WorkingCopy but not git-obsidian.

41034A6D-1A4D-4D84-81FB-74E5717F6A1A

Relevant errors (if available)

No response

Steps to reproduce

Neither of these 3 have worked for me:

  1. to empty GitHub repo from instantiated local vault

  2. from instantiated github to empty obsidian vault

  3. to non-existing github repo from instantiated local vault

(I've also tried 2 more of these via GitLab, to no avail)

Expected Behavior

I'm not sure if this ever worked for ios, so to be honest, i have no idea what to expect. Is this not supported yet? In the docs it seems to imply it is. Is there a known-working version I can roll back to?

Addition context

No response

Operating system

iOS

Plugin version

2.15.0

dougpagani commented 1 year ago

From a totally different workflow (new vault, keep it empty, clone from existing, declare a .obsidian, request deletion), i get different (also broken) behavior:

Reference screenshots: 7350B8CE-EA1B-4C77-8F66-1F94C7034ADD B1472A27-98E5-4B1C-9220-27EECADF1EC5

dougpagani commented 1 year ago

i validated with another ios git provider to know it wasn't simply Working Copy (this one is PolyGit):

50BCD4A0-2978-44D0-A52D-8340FD6FD3A5

dougpagani commented 1 year ago

yet another piece of information for you: i'm able to fix the repo for WorkingCopy/PolyGit by just opening it up in ish shell and having it rebuild the index. Every time i open the vault with the git-obsidian plugin open, it bungles it again: (don't need to push for it to break it; pulls/commits from git-obsidian do it and even in rebuilding, the push still fails)

F0E233BC-7891-4E9B-BCE0-6BBB1EB64F27

dougpagani commented 1 year ago

Alright well I give-up for now, i'll just use an appevent automation to trigger WorkingCopy and disable this plugin on mobile for now. Would be nice to get this to work since i was in the middle of setting up sync for a non-technical user when I encountered these bugs, for whom WC isn't really an option.

bruzhmelev commented 1 year ago

@dougpagani what tool do you use for accessing git on android?

peteaah commented 1 year ago

I was having issues getting a repo to work with obsidian-git following the regular mobile setup instructions I got it to work on an iphone with ios 16.3, using itunes to drop the existing repo in place I was able to get it working following the steps below, without using any other apps to manage git Note: I am using a self-hosted git service called gogs, so authentication is handled exclusively with a username/password, I have not used other authentication methods

Close obsidian and ensure the repo is uploaded and up to date in the remote location

After that git-obsidian processes all of my requests the same way it does on desktop

dougpagani commented 1 year ago

@dougpagani what tool do you use for accessing git on android?

I don't know, I'm on ios for my phone. Not like you asked, but I was using a-shell for a partial (more than enough though) implementation of git. I would imagine it's even easier for android since it's linux-based, and you could just run normal git natively without any emulations, or like this repo uses, a javascript isomorphism.

dougpagani commented 1 year ago

@bruzhmelev

dougpagani commented 1 year ago

I ended up just disabling the plugin and implementing my own thing for mobile.

GJRobert commented 1 year ago

@dougpagani I am not facing problem on iOS 16 though