From 847c134f8667b8637d4d8ccf5dd8eb6f74288a4e Mon Sep 17 00:00:00 2001 From: Pontus Stenetorp Date: Sat, 29 Nov 2014 11:43:57 +0900 Subject: [PATCH] Forcefully add files in `Pkg.generate` Makes the generation more robust and avoids potential clashes with any global `.gitignore`. --- base/pkg/generate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/pkg/generate.jl b/base/pkg/generate.jl index d52e342c01465..f4fb17cae1062 100644 --- a/base/pkg/generate.jl +++ b/base/pkg/generate.jl @@ -175,7 +175,7 @@ function genfile(f::Function, pkg::AbstractString, file::AbstractString, force:: info("Generating $file") mkpath(dirname(path)) open(f, path, "w") - Git.run(`add $file`, dir=pkg) + Git.run(`add -f $file`, dir=pkg) return true end return false