Firstly, I have a repository on my machine, outside of DropBox. Next, I have cloned the repository (bare) and into a folder inside DropBox, which is being encrypted by BoxCryptor.
As per the following commands, both appear to be accessible and treated as git repositories correctly:
PS D:\MyProject> git remote -v
origin X:\Dropbox (Personal)\MyProject.git\" (fetch)
origin X:\Dropbox (Personal)\MyProject.git\" (push)
PS D:\MyProject> cd 'X:\Dropbox (Personal)\MyProject.git'
PS X:\Dropbox (Personal)\MyProject.git> git remote -v
origin D:\MyProject\ (fetch)
origin D:\MyProject\ (push)
However, I'm unable to push from the folder outside DropBox, to the folder inside DropBox:
PS D:\MyProject> git push origin master
fatal: 'Dropbox (Personal)\MyProject.git"' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Now I know it's not a permission problem - I have write access to the folder. And of course, it is a repository, because I can run git log inside the folder and see the log.
I suspect it may either have to do with funny stuff going on with BoxCryptor. Or is it because of that weird extra double quote at the end of the origin url (in which case, how do I get rid of it?)?