Skip to content

Commit

Permalink
Forcefully add files in Pkg.generate
Browse files Browse the repository at this point in the history
Makes the generation more robust and avoids potential clashes with any
global `.gitignore`.
  • Loading branch information
Pontus Stenetorp committed Nov 29, 2014
1 parent da19d45 commit 847c134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/pkg/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 847c134

Please sign in to comment.