summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-02 12:20:21 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-01-02 12:20:21 +0000
commita2a2d2917010881b8f6dc4560ef9ff0e6c02df7a (patch)
tree38dcc3f8da1573f84b4ce42624bed416519c79ad /lib
parentea44e5b0bd79bdd08d2e3d55ac12b8355b34cc3d (diff)
downloadgitano-a2a2d2917010881b8f6dc4560ef9ff0e6c02df7a.tar.gz
Ensure that if there is no : then readme gets one, for safety
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/repository.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitano/repository.lua b/lib/gitano/repository.lua
index 88e765b..879d001 100644
--- a/lib/gitano/repository.lua
+++ b/lib/gitano/repository.lua
@@ -273,6 +273,9 @@ function repo_method:check_local_git_files()
"snapshots" } do
local v = self.project_config.settings["cgitrc." .. suffix]
if v then
+ if v == "readme" and not v:find(":") then
+ v = ":" .. v
+ end
add_cgitrc(suffix, v)
end
end