Change one branch from master to main

This commit is contained in:
2025-11-27 21:42:41 +01:00
parent 37f6a5aef8
commit 1bbca8c721
2 changed files with 8 additions and 6 deletions

1
.gitmodules vendored
View File

@@ -160,3 +160,4 @@
[submodule "dehaeze26_decoupling_parallel_manipulators"]
path = dehaeze26_decoupling_parallel_manipulators
url = https://git.tdehaeze.xyz/tdehaeze/dehaeze26_decoupling_parallel_manipulators
branch = main

View File

@@ -13,12 +13,13 @@ Welcome to my research pages.
* Add a submodule :noexport:
#+begin_src emacs-lisp :results none
(let* ((url (read-string "Add submodule (remote url) "))
(url-match (string-match "\\([^./]+\\)\\(\\.git\\)?$" url))
(path (match-string 1 url))
(path (read-string "Submodule directory " path)))
(shell-command (concat "git submodule add " url " " path))
(shell-command (concat "git submodule deinit -f " path)))
(let* ((url (read-string "Add submodule (remote url): "))
(url-match (string-match "\\([^./]+\\)\\(\\.git\\)?$" url))
(default-path (match-string 1 url))
(path (read-string "Submodule directory: " default-path))
(branch (read-string "Branch to use (default: main): " nil nil "main")))
(shell-command (format "git submodule add --branch %s %s %s" branch url path))
(shell-command (format "git submodule deinit -f %s" path)))
#+end_src
* Change submodule url :noexport: