Fix wrong argument order in match-string call
This commit is contained in:
parent
b0cb311665
commit
2b567d568e
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue