From 4fcbfc30af35b27f1b51a803e5613bf36c5fbc0d Mon Sep 17 00:00:00 2001 From: moyiz <8603313+moyiz@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:37:42 +0300 Subject: [PATCH] fix: substitute ':' to '__' in git_uri_to_dir_name --- lua/git-dev/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/git-dev/init.lua b/lua/git-dev/init.lua index 829a899..c058b75 100644 --- a/lua/git-dev/init.lua +++ b/lua/git-dev/init.lua @@ -127,7 +127,7 @@ end -- "https://github.com/example/repo.git" => "github.com__example__repo" local function git_uri_to_dir_name(uri, branch) local dir_name = - uri:gsub("/+$", ""):gsub(".*://", ""):gsub("/", "__"):gsub(".git$", "") + uri:gsub("/+$", ""):gsub(".*://", ""):gsub("[/:]", "__"):gsub(".git$", "") if branch and branch ~= "" then dir_name = dir_name .. "#" .. branch:gsub("/", "__") end