From 8edafa6fe5dcce374af921a4dc1ab54ff9281025 Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Sat, 9 Nov 2019 00:26:59 +0700 Subject: [PATCH] Fix a gitignore bug This only came up when you generate more than one package in the same Julia session. The mutating `append!` function was adding stuff to the global variable that the coverage plugins were using for their gitignores. The new `vcat` is non-mutating. --- src/plugins/git.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/git.jl b/src/plugins/git.jl index 19243a6..250b074 100644 --- a/src/plugins/git.jl +++ b/src/plugins/git.jl @@ -62,7 +62,7 @@ end # Create the .gitignore. function hook(p::Git, t::Template, pkg_dir::AbstractString) - ignore = mapreduce(gitignore, append!, t.plugins) + ignore = mapreduce(gitignore, vcat, t.plugins) # Only ignore manifests at the repo root. p.manifest || "Manifest.toml" in ignore || push!(ignore, "/Manifest.toml") unique!(sort!(ignore))