On Sat, Dec 03, 2022 at 08:38:32PM +0100, rozanski.s...@gmail.com wrote:

[...]
> That is to say, I already have the culprit - in earlier versions of Git I
> could keep repositories in OneDrive without any problem and everything
> worked fine, but now it is throwing errors :( :( :( :(.
> 
> Any ideas?

Git never supported keeping its repositores on non-local filesystems such as
OneDrive (or whatever other "cloud" drive or networked filesystems such as NFS
or CIFS/Samba). It does have some hacks and kludges to facilitate working on
_some_ of them, but it's never guaranteed. This is not some whimsical decision
of the Git's creators: such filesystems, while called that, do not implement
(or do not implement properly) many aspects of the behavior of "real"
filesystems Git relies on to work properly.

The best way to maintain an offline ("in the cloud") copy of a normal local
repository is using the `git bundle` command and have the cloud software sync
the produced single file - a bundle - to the cloud.

A bundle is a special sort of archive which can be fetched from, as if that
were a regular repository.
See [1] and [2].

I understand this is more complicated as it requires an extra step, but I'd
want to reiterate that the fact Git _happened_ to work with OneDrive is sort
of pure luck. Even if you'll report this problem to the Git developers and
they will somehow manage to work around this, nothing prevents this situation
from occuring in the future - both due changes in Git and changes in OneDrive.


While we are at it, please next time be more constructive right from the
start: keeping a repository on a non-filesystem is the single most crucial
fact which was communicated to the auditory after a copious mail exchange (and
everyone's time spent at guessing).
Also please refrain from resorting TO WRITING IN CAPS: I understand that you
are annoyed by this problem (and I would be too, were I in your place) but you
asked for help, and folks genuinely tried to provide it. So there's no point
in overstating your concerns or demands: you're not talking to repesentatives
of a commercial entity which signed some support contract with you.
So, stay calm :-)


1. https://git-scm.com/book/en/v2/Git-Tools-Bundling
2. https://git-scm.com/docs/git-bundle

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20221204120036.tgn3dhst6ks4xsx3%40carbon.

Reply via email to