Fix wrong argument order in match-string call

This commit is contained in:
TEC 2022-08-13 00:33:21 +08:00
parent b0cb311665
commit 2b567d568e
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 1 deletions

View File

@ -1975,7 +1975,7 @@ the pre-filled remote url use ssh.
(when (and (equal remote gh-user)
(string-match "\\`https://github\\.com/\\([^/]+\\)/\\([^/]+\\)\\.git\\'"
origin)
(not (string= (match-string origin 1) gh-user)))
(not (string= (match-string 1 origin) gh-user)))
(setq origin (replace-regexp-in-string
"\\`https://github\\.com/" "git@github.com:"
origin)))