summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-10-27 08:44:27 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-10-27 08:44:27 +0100
commit8e29fb9c131a7e77eb15423d76acbc2df2c4c907 (patch)
treeb4017e1f3b2e6fbf7918747f728d318165c72ddc
parent474f4298edf7992e4d4a10888df04ac112ce774f (diff)
downloadgitano-8e29fb9c131a7e77eb15423d76acbc2df2c4c907.tar.bz2
Set hide=1 in cgitrc when project.archived
-rw-r--r--lib/gitano/repository.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitano/repository.lua b/lib/gitano/repository.lua
index a15fcbe..fe38695 100644
--- a/lib/gitano/repository.lua
+++ b/lib/gitano/repository.lua
@@ -260,6 +260,10 @@ function repo_method:check_local_git_files()
if description and description ~= "" then
add_cgitrc("desc", description)
end
+ local archive_marker = self:conf_get "project.archived"
+ if archive_marker then
+ add_cgitrc("hide", "1")
+ end
table.sort(cgitrc)
cgitrc[#cgitrc+1] = ""
cgitrc = table.concat(cgitrc, "\n")