diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2022-09-14 19:56:28 -0400 |
|---|---|---|
| committer | Kyle Meyer <kyle@kyleam.com> | 2022-09-14 19:56:28 -0400 |
| commit | 75647d08a097157231c598648e2f632279ff3a41 (patch) | |
| tree | eb11beb9522d4f22fd46385f18411cabcd58ca76 /test | |
| parent | c8df0fe620ffa4bff712aaded68db25f600c965b (diff) | |
magit-clone-url-format: Drop ~ prefix from sourcehut entry
Don't hard code the "~" prefix because sourcehut plans to use a
different prefix for organizations.
Closes #4753.
Diffstat (limited to 'test')
| -rw-r--r-- | test/magit-tests.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/magit-tests.el b/test/magit-tests.el index 8263036..e6230f0 100644 --- a/test/magit-tests.el +++ b/test/magit-tests.el @@ -307,7 +307,7 @@ Enter passphrase for key '/home/user/.ssh/id_rsa': " (ert-deftest magit-clone:--name-to-url-format-defaults () (magit-with-test-repository - (magit-git "config" "--add" "sourcehut.user" "shuser") + (magit-git "config" "--add" "sourcehut.user" "~shuser") (magit-git "config" "--add" "github.user" "ghuser") (magit-git "config" "--add" "gitlab.user" "gluser") ;; No explicit service @@ -327,14 +327,14 @@ Enter passphrase for key '/home/user/.ssh/id_rsa': " "git@github.com:a/b.git")) (should (string-equal (magit-clone--name-to-url "gl:t/s") "git@gitlab.com:t/s.git")) - (should (string-equal (magit-clone--name-to-url "sh:x/y") + (should (string-equal (magit-clone--name-to-url "sh:~x/y") "git@git.sr.ht:~x/y")) ;; Explicit user (long service names) (should (string-equal (magit-clone--name-to-url "github:a1/b1") "git@github.com:a1/b1.git")) (should (string-equal (magit-clone--name-to-url "gitlab:t1/s1") "git@gitlab.com:t1/s1.git")) - (should (string-equal (magit-clone--name-to-url "sourcehut:x1/y1") + (should (string-equal (magit-clone--name-to-url "sourcehut:~x1/y1") "git@git.sr.ht:~x1/y1")))) (ert-deftest magit-clone:--name-to-url-format-single-string () |
