Hi, I have in .gitmodules all submodules configured with url = https://system@scm.trinitydesktop.org/scm/git/
I want to have GITEA instead
remote.origin.url=https://mirror.git.trinitydesktop.org/gitea/TDE/
How can I change it in a safe way?
I was reading
https://www.damirscorner.com/blog/posts/20210423-ChangingUrlsOfGitSubmodules...
but it says .gitmodules needs to be pushed to GIT as well and it doesn't work for me
thank you in advance
On 2025/04/13 04:45 PM, deloptes via tde-devels wrote:
Hi, I have in .gitmodules all submodules configured with url = https://system@scm.trinitydesktop.org/scm/git/
I want to have GITEA instead
remote.origin.url=https://mirror.git.trinitydesktop.org/gitea/TDE/
How can I change it in a safe way?
I was reading
https://www.damirscorner.com/blog/posts/20210423-ChangingUrlsOfGitSubmodules...
but it says .gitmodules needs to be pushed to GIT as well and it doesn't work for me
thank you in advance
Hi Emanoil, You don't need to changegit submodules but rather the remote origin. Use `git remote -vv` to see you current remote path, then you can remove the exiting one and add back a new one with the path in gitea, something like "gitea@mirror.git.trinitydesktop.org:TDE/tdebase.git" for example. Cheers Michele
Michele Calgaro via tde-devels wrote:
git remote -v
in top level (tde) I set the remote origin
$ git remote -v origin https://mirror.git.trinitydesktop.org/gitea/TDE/tde (fetch) origin https://mirror.git.trinitydesktop.org/gitea/TDE/tde (push)
git config shows still the remote origin per module
$ git config -l
pull.rebase=true core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true submodule.active=. remote.origin.url=https://mirror.git.trinitydesktop.org/gitea/TDE/tde remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.master.remote=origin branch.master.merge=refs/heads/master submodule.main/applications/development/kdbg.url=https://system@scm.trinitydesktop.org/scm/git/kdbg submodule.main/applications/development/kdiff3.url=https://system@scm.trinitydesktop.org/scm/git/kdiff3 submodule.main/applications/development/kpicosim.url=https://system@scm.trinitydesktop.org/scm/git/kpicosim submodule.main/applications/development/kscope.url=https://system@scm.trinitydesktop.org/scm/git/kscope submodule.main/applications/development/ktechlab.url=https://system@scm.trinitydesktop.org/scm/git/ktechlab submodule.main/applications/development/kxmleditor.url=https://system@scm.trinitydesktop.org/scm/git/kxmleditor submodule.main/applications/development/piklab.url=https://system@scm.trinitydesktop.org/scm/git/piklab submodule.main/applications/development/tdesvn.url=https://system@scm.trinitydesktop.org/scm/git/tdesvn submodule.main/applications/games/knights.url=https://system@scm.trinitydesktop.org/scm/git/knights
and I see message warning: redirecting to https://scm.trinitydesktop.org/gitea/TDE/kcmautostart
On 2025/04/15 12:55 AM, deloptes via tde-devels wrote:
Michele Calgaro via tde-devels wrote:
git remote -v
in top level (tde) I set the remote origin
$ git remote -v origin https://mirror.git.trinitydesktop.org/gitea/TDE/tde (fetch) origin https://mirror.git.trinitydesktop.org/gitea/TDE/tde (push)
git config shows still the remote origin per module
$ git config -l and I see message warning: redirecting to https://scm.trinitydesktop.org/gitea/TDE/kcmautostart
Hi Emanoil, sorry for the late reply, somehow I missed your email. I am trying to understand what the problem is. I use the same setup with remote origin pointing to TGW and I don't have any specific problem with git. Can you explain better? when do you see the redirect message? and does this cause issues on your git workflow?
Cheers Michele
Michele Calgaro via tde-devels wrote:
Hi Emanoil, sorry for the late reply, somehow I missed your email. I am trying to understand what the problem is. I use the same setup with remote origin pointing to TGW and I don't have any specific problem with git. Can you explain better? when do you see the redirect message? and does this cause issues on your git workflow?
Hi Michele, no problem, I respect you time and did not bother any more.
I do not know why everything was setup to point to scm.trinitydesktop.org. In any case when I updated the root/base repo (tde) it did not update automatically the submodules and every time I did git pull it was spitting the warning. There were two problems: 1st it was slow to pull from scm and second I am not authorized to push to scm (I know what scm is, no need to explain) Perhaps the issue was introduced because I pulled from scm. I do not recall anymore. It was many years ago. I wrote a script that updated all the submodules to use remote @TGW. Now it is faster and no problem with push anymore.
Hi Michele, no problem, I respect you time and did not bother any more.
I do not know why everything was setup to point to scm.trinitydesktop.org. In any case when I updated the root/base repo (tde) it did not update automatically the submodules and every time I did git pull it was spitting the warning. There were two problems: 1st it was slow to pull from scm and second I am not authorized to push to scm (I know what scm is, no need to explain) Perhaps the issue was introduced because I pulled from scm. I do not recall anymore. It was many years ago. I wrote a script that updated all the submodules to use remote @TGW. Now it is faster and no problem with push anymore.
Ok, thanks for the explanation Emanoil. The reason everything is still pointing to scm is mostly historical, since gitea and TGW only came into the picture in 2018. Glad to hear all is good now. Cheers Michele
Michele Calgaro via tde-devels wrote:
Ok, thanks for the explanation Emanoil. The reason everything is still pointing to scm is mostly historical, since gitea and TGW only came into the picture in 2018. Glad to hear all is good now.
It is almost good :-D Slavek pushed in edeps some packages with version higher than current version and I had to apply -b to dch, in order to force the actual debian and package version I use for my builds
There are also two files missing in krdc and I got FTBFS. These are /opt/trinity/share/apps/krdc/pics/pointcursor.png /opt/trinity/share/apps/krdc/pics/pointcursormask.png
thanks BR
On 2025/04/27 10:20 PM, deloptes via tde-devels wrote:
There are also two files missing in krdc and I got FTBFS. These are /opt/trinity/share/apps/krdc/pics/pointcursor.png /opt/trinity/share/apps/krdc/pics/pointcursormask.png
Auch, this relates to the recent PR in tdenetwork about the dot mouse cursor. I will prepare a tde-packaging PR for this, good catch. Cheers Michele