That’s great. Thanks. I’ll wait.
Ok, can you update gogs and try again?
It’s getting there. I can access the repos through the webpages now, but I’m having trouble pushing to repos.
C:\Users\Trev\source\repos\xxxxxx\xxxxx>git.exe push --progress "gogs" tp/dev:tp/dev
git: 'credential-manager' is not a git command. See 'git --help'.
The most similar command is
credential-manager-core
Enumerating objects: 30, done.
Counting objects: 100% (30/30), done.
Delta compression using up to 8 threads
Compressing objects: 100% (21/21), done.
Writing objects: 100% (21/21), 13.47 KiB | 4.49 MiB/s, done.
Total 21 (delta 17), reused 0 (delta 0), pack-reused 0
remote: hooks/pre-receive: line 2: /snap/gogs/20050326/gogs/gogs: No such file or directory
To https://gogs.tprinn.syncloud.it/xxxxxx/xxxxx.git
! [remote rejected] tp/dev -> tp/dev (pre-receive hook declined)
error: failed to push some refs to 'https://gogs.tprinn.syncloud.it/xxxxxx/xxxxx.git'
I’ve been getting the messages about credential-manager for ages. They seemed to be entirely benign.
Ok, another issue which was uncovered by the upgrade.
All created repos have git hooks in them with paths which break every upgrade like this:
Example:
/data/gogs/[user]/[repo]/hooks/pre-receive
Contains (among other things):
/snap/gogs/157/bin/gogs
Which is wrong and should be changed to:
/snap/gogs/current/bin/gogs
I have pushed another fix which will work for new repos but old ones should be changed manually by the example above.
Can you update and fix the existing repos?
Really sorry for so many issues in gogs.
Sorry, I haven’t given up on this, but I haven’t had time to look at it properly yet. I hope to get onto it at the weekend. I noticed there’s another release of gogs. Should I install that first, or make the fixes first?
It all seems to be working now. Thanks
I was a whizz at Unix scripting in the 80s, but my skillz have atrophied since then so it took me a while going through by hand (copying, not editing) as I have a lot of repos on there, but all done now.