mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix magit-clone error
magit-clone function has changed signature to work with transient. So using the new magit-clone-regular instead. Signed-off-by: Huy Duong <huy.duong@employmenthero.com>
This commit is contained in:
@ -113,14 +113,15 @@ control in buffers."
|
|||||||
"Destination: "
|
"Destination: "
|
||||||
magit-clone-default-directory
|
magit-clone-default-directory
|
||||||
name nil name)))))
|
name nil name)))))
|
||||||
(magit-clone
|
(magit-clone-regular
|
||||||
(cond ((string-match-p "^[^/]+$" url-or-repo)
|
(cond ((string-match-p "^[^/]+$" url-or-repo)
|
||||||
(require 'ghub)
|
(require 'ghub)
|
||||||
(format +magit-default-clone-url (ghub--username (ghub--host)) url-or-repo))
|
(format +magit-default-clone-url (ghub--username (ghub--host)) url-or-repo))
|
||||||
((string-match-p "^\\([^/]+\\)/\\([^/]+\\)/?$" url-or-repo)
|
((string-match-p "^\\([^/]+\\)/\\([^/]+\\)/?$" url-or-repo)
|
||||||
(apply #'format +magit-default-clone-url (split-string url-or-repo "/" t)))
|
(apply #'format +magit-default-clone-url (split-string url-or-repo "/" t)))
|
||||||
(url-or-repo))
|
(url-or-repo))
|
||||||
dir))
|
dir
|
||||||
|
nil))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user