fix(vc): string type error caused by codeberg support

79736d8 added codeberg.org support to the browse-at-remote package, but
rmuslimov/browse-at-remote@73c4526 (absorbed in 81268cc) changed the
format of this variable, causing "wrong-type-argument: stringp, nil"
errors.

Amend: 81268cc5cf
Ref: rmuslimov/browse-at-remote@73c45265a1
Ref: 79736d832d
This commit is contained in:
Robbert van der Helm 2023-02-22 00:32:35 +01:00 committed by GitHub
parent 344178c208
commit eed6d90586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ otherwise in default state."
;; Add codeberg.org support ;; Add codeberg.org support
;; TODO: PR this upstream? ;; TODO: PR this upstream?
(add-to-list 'browse-at-remote-remote-type-regexps '("^codeberg\\.org$" . "codeberg")) (add-to-list 'browse-at-remote-remote-type-regexps '(:host "^codeberg\\.org$" :type "github"))
;; HACK `browse-at-remote' produces urls with `nil' in them, when the repo is ;; HACK `browse-at-remote' produces urls with `nil' in them, when the repo is
;; detached. This creates broken links. I think it is more sensible to ;; detached. This creates broken links. I think it is more sensible to