I think I am having a chicken and an egg problem with GIT. I have been doing a lot of playing around with it and here is what I am seeing.
I setup a brand new server today (2019). Installed PowerShell Universal and setup my appsettings.json to point to a brand new, blank repository in Github (just has the readme).
Start up and I get an error message that GIT sync won’t work until I license it. I install my license and then wait a bit and I get the error that my repository folder isn’t empty. The only thing in there is the new license.ps1.
I have gotten some other ones setup with GitHub, so not sure why I am having issues like this. Am I doing something in the wrong order?
We tried to mitigate this by avoiding the license check for the first sync so that any license files could be retrieved. Honestly, I might just remove license enforcement on git sync since it seems to be a hassle.
I ended up getting this working. I went back and installed v2.2.1. That got the initial sync working. I then was able to upgrade to 2.3 (nightly build) and the rest of the files started syncing at that time. It just seemed like I couldn’t get the initial sync going with 2.3 for some reason.
I bet appsettings.json got overwritten at some point. This is my upgrade test box and not sure when it quit working. This instance I usually just run the .MSI and didnt back it up…