Track the PkgTemplates version in commit messages
This commit is contained in:
parent
4d8b5d360d
commit
4fa7d9a62b
@ -39,7 +39,13 @@ function (t::Template)(pkg::AbstractString)
|
||||
if t.git
|
||||
# Commit the files.
|
||||
LibGit2.add!(repo, ".")
|
||||
LibGit2.commit(repo, "Files generated by PkgTemplates")
|
||||
msg = "Files generated by PkgTemplates"
|
||||
installed = Pkg.installed()
|
||||
if haskey(installed, "PkgTemplates")
|
||||
ver = string(installed["PkgTemplates"])
|
||||
msg *= "\n\nPkgTemplates version: $ver"
|
||||
end
|
||||
LibGit2.commit(repo, msg)
|
||||
end
|
||||
|
||||
if t.dev
|
||||
|
Loading…
Reference in New Issue
Block a user