espelhamento de
https://github.com/mail-in-a-box/mailinabox.git
sincronizado 2026-04-02 21:37:23 +02:00
preloaded: add support for clone at commit
Esse commit está contido em:
5
tests/vagrant/preloaded/Vagrantfile
externo
5
tests/vagrant/preloaded/Vagrantfile
externo
@@ -14,8 +14,13 @@ def checkout_tag_and_mount(obj, tag)
|
|||||||
_srcdir="src/maibldap-#{tag}"
|
_srcdir="src/maibldap-#{tag}"
|
||||||
if not Dir.exist?(_srcdir)
|
if not Dir.exist?(_srcdir)
|
||||||
puts "Cloning tag #{tag} to #{_srcdir}"
|
puts "Cloning tag #{tag} to #{_srcdir}"
|
||||||
|
if tag.size==40 and tag.match?(/\A[0-9a-fA-F]+\Z/)
|
||||||
|
system("git clone #{ENV['MIABLDAP_GIT']} #{_srcdir}")
|
||||||
|
system("cd #{_srcdir}; git reset --hard #{tag}")
|
||||||
|
else
|
||||||
system("git clone -b #{tag} --depth 1 #{ENV['MIABLDAP_GIT']} #{_srcdir}")
|
system("git clone -b #{tag} --depth 1 #{ENV['MIABLDAP_GIT']} #{_srcdir}")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
obj.vm.synced_folder _srcdir, "/mailinabox", id: "mailinabox", automount: false
|
obj.vm.synced_folder _srcdir, "/mailinabox", id: "mailinabox", automount: false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário