pages should reset the remote if it does not match #2

Open
opened 2022-10-05 16:29:43 +05:30 by dachary · 0 comments

If repo = "https://gitea.hostea.org/Hostea/website" changes to repo = "https://gitea.gna.org/Gna/website" and pages restarts, it will not reset the remote and keep pulling from the old repository.

(eǝ) debian@bind-host:/usr/share/nginx/html$ git branch -v      
* (HEAD detached at origin/pages) 4ffd0f1 new deploy: 2022-09-05T22:28:53+00:00
  master                          22820a4 feat: setup CI to build website
 (eǝ) debian@bind-host:/usr/share/nginx/html$ git remote -v
origin  https://gitea.hostea.org/Hostea/website (fetch)
origin  https://gitea.hostea.org/Hostea/website (push)                                                                            
 (eǝ) debian@bind-host:/usr/share/nginx/html$ sudo git remote rm origin
 (eǝ) debian@bind-host:/usr/share/nginx/html$ sudo git remote add origin https://gitea.gna.org/Gna/website
If repo = "https://gitea.hostea.org/Hostea/website" changes to repo = "https://gitea.gna.org/Gna/website" and pages restarts, it will not reset the remote and keep pulling from the old repository. ``` (eǝ) debian@bind-host:/usr/share/nginx/html$ git branch -v * (HEAD detached at origin/pages) 4ffd0f1 new deploy: 2022-09-05T22:28:53+00:00 master 22820a4 feat: setup CI to build website (eǝ) debian@bind-host:/usr/share/nginx/html$ git remote -v origin https://gitea.hostea.org/Hostea/website (fetch) origin https://gitea.hostea.org/Hostea/website (push) (eǝ) debian@bind-host:/usr/share/nginx/html$ sudo git remote rm origin (eǝ) debian@bind-host:/usr/share/nginx/html$ sudo git remote add origin https://gitea.gna.org/Gna/website ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LibrePages/librepages#2
No description provided.