Change one branch from master to main
This commit is contained in:
1
.gitmodules
vendored
1
.gitmodules
vendored
@@ -160,3 +160,4 @@
|
|||||||
[submodule "dehaeze26_decoupling_parallel_manipulators"]
|
[submodule "dehaeze26_decoupling_parallel_manipulators"]
|
||||||
path = dehaeze26_decoupling_parallel_manipulators
|
path = dehaeze26_decoupling_parallel_manipulators
|
||||||
url = https://git.tdehaeze.xyz/tdehaeze/dehaeze26_decoupling_parallel_manipulators
|
url = https://git.tdehaeze.xyz/tdehaeze/dehaeze26_decoupling_parallel_manipulators
|
||||||
|
branch = main
|
||||||
|
|||||||
13
index.org
13
index.org
@@ -13,12 +13,13 @@ Welcome to my research pages.
|
|||||||
|
|
||||||
* Add a submodule :noexport:
|
* Add a submodule :noexport:
|
||||||
#+begin_src emacs-lisp :results none
|
#+begin_src emacs-lisp :results none
|
||||||
(let* ((url (read-string "Add submodule (remote url) "))
|
(let* ((url (read-string "Add submodule (remote url): "))
|
||||||
(url-match (string-match "\\([^./]+\\)\\(\\.git\\)?$" url))
|
(url-match (string-match "\\([^./]+\\)\\(\\.git\\)?$" url))
|
||||||
(path (match-string 1 url))
|
(default-path (match-string 1 url))
|
||||||
(path (read-string "Submodule directory " path)))
|
(path (read-string "Submodule directory: " default-path))
|
||||||
(shell-command (concat "git submodule add " url " " path))
|
(branch (read-string "Branch to use (default: main): " nil nil "main")))
|
||||||
(shell-command (concat "git submodule deinit -f " path)))
|
(shell-command (format "git submodule add --branch %s %s %s" branch url path))
|
||||||
|
(shell-command (format "git submodule deinit -f %s" path)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Change submodule url :noexport:
|
* Change submodule url :noexport:
|
||||||
|
|||||||
Reference in New Issue
Block a user