denolehov / obsidian-git

Backup your Obsidian.md vault with git
MIT License
6.14k stars 250 forks source link

[Bug]: Cant clone existing git repository #642

Open mteixeira opened 7 months ago

mteixeira commented 7 months ago

Describe the bug

My Vault sync stopped working, and then when i tried to create another vault and repository, the same quiet behaviour occurs.

When triing to clone an existing repo, it starts to clone (tooltip notification), restart the vault, but nothing happen. No files, no config, no branch, nothing. On mobile version I cannot see my current branch, or other git configs If repo with .obsidian file, then all configs are missing and git config are lost, and the repo substitution appears not to be replaced.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No error appears, only infinite history view refresh, 

no console could be oppened on mobile version.
Notification: No upstream branch is set, pleas select one
I select origin and nothing happens

Steps to reproduce

Expected Behavior

Addition context

All operations are strange. Pull, push, fetch

Operating system

Android

Installation Method

None

Plugin version

2.22.0

mteixeira commented 7 months ago

On some additional test with few files on repository appeared work properly, so it can be related with large ammount of files or size, but i suspect on git internal files, because cleaning repo does not solve the problem

BasedDrainer commented 7 months ago

Same here

theIroaia commented 5 months ago

Same happened on my iOS device. After I request pull for a set up repo in a fresh vault, the pop-up notification goes like: No upstream branch is set. Please select one -> (I selected origin) ->Fetching remote branches -> initializing fetch -> Fetching progress: Compressing objects: 227 of 227 Then Obsidian refreshed and nothing was pulled.

Moreover, if I keep trying to pull from the repo following the above process, it will eventually crash the whole Obsidian app, leaving it to be an unresponsive black screen. I have to kill Obsidian in iOS level. The black screen problem would happen after 2~3 attempts to pull, as I tested for ~10 rounds. The vault folder remains empty after these pulling attempts, as I checked in the iOS File app.

The git repo I was working with synced normally between my other macOS and Win devices. The vault is 34.3MB in size as I checked on my computer.

lflage commented 4 months ago

I just had the same issue with the exact same behavior as @theIroaia