Fix submodule update.

Optimize rust cargo integration.
This commit is contained in:
Cor Legemaat 2026-03-30 14:10:45 +02:00
commit 366ef4119f
4 changed files with 30 additions and 14 deletions

View file

@ -86,14 +86,9 @@
(define-public repo-update-src
(lambda (path)
""
(let ((repo (submodule-lookup (repository-open path)
"autogen"))
(old-cwd (getcwd)))
;;Not working for updates only init?
;;(submodule-update repo)
(chdir (string-join (list path "autogen")
file-name-separator-string))
(system* "/usr/bin/git" "pull")
(let ((old-cwd (getcwd)))
(chdir path)
(system* "/usr/bin/git" "submodule" "update" "--remote" "--merge")
(chdir old-cwd))))
;; TODO guile-git method...