Hi,
I’m trying to configure a git sync with azure devops in a new psu installation.
I deleted the .git folder under:
C:\ProgramData\UniversalAutomation\Repository
Repo only has one master branch, it’s completly empty.
I tried pushonly for the first sync, this is my config:
"Data": {
"RepositoryPath": "%ProgramData%\\UniversalAutomation\\Repository",
"ConnectionString": "filename=%ProgramData%\\UniversalAutomation\\database.db;upgrade=true",
"RunMigrations": true,
"GitRemote": "https://myazuredevopsrepo",
"GitUserName": "somestring",
"GitPassword": "PATcomeshere",
"GitBranch": "master",
"GitSyncBehavior": "PushOnly",
"GitInitializeBehavior": "init",
"GitSyncInterval": "1",
"GitSyncTimeout": 60,
"ConfigurationScript": "",
"Mode": "Manual"
I created a PAT with all access rights for code, so PSU should be able to handle the repo.
I start the PSU Service. I’m getting randomly the following errors:
Git synchronization failed. failed to write reference ‘refs/heads/master’: a reference with that name already exists.
or
Object reference not set to an instance of an object
or
too many redirects or authentication replays
Do I have to specify a valid GitUserName or can it be a random string? In Azure DevOps there’s just a PAT no Username
What am I doing wrong ?
Thanks!
Product: PowerShell Universal
Version: 4.2.21