Git Clone not working

Product: PowerShell Universal
Version: 4.3.1

I’m trying to transition our existing PSU servers into git sync and I’ve manually synced their repositories using an external git client with different branches in a Github Repo. To test out setting up git sync in my own development environment, I have tried using the following appsettings

{
  "Kestrel": {
    "Endpoints": {
      "HTTP": {
        "Url": "http://*:5000"
      }
    }
  },
  "Plugins": ["SQLite"],
  "Logging": {
    "Path": "%PROGRAMDATA%/PowerShellUniversal/log.txt",
    "RetainedFileCountLimit": 31,
    "LogLevel": {
      "Default": "Debug",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "Data": {
    "RepositoryPath": "%ProgramData%\\UniversalAutomation\\Repository",
    "ConnectionString": "Data Source=%ProgramData%\\UniversalAutomation\\database.db",
    "GitRemote": "https://github.com/<my-org>/dta-psu.git",
    "GitUserName": "<USERNAME>",
    "GitPassword": "<MYPAT>",
    "GitBranch": "develop",
    "GitInitializationBehavior": "clone",
    "GitSyncBehavior": "OneWay"
  }
}

I’ve tried putting my PAT with the gitremote url, that doesn’t seem to change anything.
Note that this is a completely fresh install and I have tried creating the repository folder but leaving it empty - nothing seems to work. I get this error within PSU:

Git Synchronization Failed
Failed to sync. Git directory is not empty and One Way git sync is enabled.

Looking at the systemLog I see this:

2024-06-28 13:25:03.356 -07:00 [INF] Git repository does not exist. Initializing.
2024-06-28 13:25:03.415 -07:00 [INF] Finished groom job.
2024-06-28 13:25:04.449 -07:00 [INF] Remote is empty. Init first.
2024-06-28 13:25:04.458 -07:00 [ERR] Failed to sync: Failed to sync. Git directory is not empty and One Way git sync is enabled. at UniversalAutomation.Git.GitService.Init(GitSettings settings) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 290
at UniversalAutomation.Git.GitService.Initialize() in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 274
at UniversalAutomation.GitSyncService.TrySync(GitStatus status, Boolean force, GitSettings settings) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 157
at UniversalAutomation.GitSyncService.Sync(Boolean force) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 104

I’m able to clone the repository manually with an external git client using my PAT

git clone -b develop https://<MYPAT>@github.com/lnw-gaming/dta-psu Repository

PSU can see the commits, and it says it is on the develop branch, but it still won’t synchronize and the logs show the following error:

2024-06-28 13:46:58.623 -07:00 [ERR] Failed to sync: There is no tracking information for the current branch. at LibGit2Sharp.Commands.Pull(Repository repository, Signature merger, PullOptions options) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Commands\Pull.cs:line 29
at UniversalAutomation.Git.GitService.Pull() in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 683
at UniversalAutomation.GitSyncService.TrySync(GitStatus status, Boolean force, GitSettings settings) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 190
at UniversalAutomation.GitSyncService.Sync(Boolean force) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 104

I’m not totally sure what to try next, I’ve even tried just creating a whole new bare remote repository and trying to let it sync there and that doesn’t seem to work either

2024-06-28 13:57:37.180 -07:00 [INF] Git repository does not exist. Initializing.
2024-06-28 13:57:38.055 -07:00 [INF] Starting module discovery using Process.
2024-06-28 13:57:38.399 -07:00 [INF] Remote is empty. Init first.
2024-06-28 13:57:39.732 -07:00 [ERR] Failed to sync: failed to parse supported auth schemes: The operation identifier is not valid.
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 154
at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 172
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\actions-runner\_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2246 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Network.cs:line 331
at LibGit2Sharp.Network.Push(IEnumerable`1 branches, PushOptions pushOptions) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Network.cs:line 255
at LibGit2Sharp.Network.Push(Branch branch, PushOptions pushOptions) in C:\actions-runner_work\universal\universal\src\libgit2sharp\LibGit2Sharp\Network.cs:line 216
at UniversalAutomation.Git.GitService.Push() in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 632
at UniversalAutomation.Git.GitService.Init(GitSettings settings) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 323
at UniversalAutomation.Git.GitService.Initialize() in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 274
at UniversalAutomation.GitSyncService.TrySync(GitStatus status, Boolean force, GitSettings settings) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 157
at UniversalAutomation.GitSyncService.Sync(Boolean force) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 104