summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-04-08 15:11:17 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2017-04-08 15:11:17 +0100
commitec05045e9f29a9cb9f7d1a0a9d38b8b3d13275af (patch)
treeac5760ab44cf2b2da17680d82f7e4f3a5ba55e34 /lib
parent08a1423a022392b045a483697731ba048a3eebc4 (diff)
downloadgitano-ec05045e9f29a9cb9f7d1a0a9d38b8b3d13275af.tar.gz
ensures server-info files exist on new reposdsilvers/update-on-create
This change ensures that the server-info files are created at the point that a repository is realised.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/repository.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitano/repository.lua b/lib/gitano/repository.lua
index b66c343..b7e2ccc 100644
--- a/lib/gitano/repository.lua
+++ b/lib/gitano/repository.lua
@@ -489,6 +489,11 @@ function repo_method:realise()
self.git = r
self.is_nascent = nil
+ r, msg = self.git:update_server_info()
+ if not r then
+ return false, msg
+ end
+
-- Finally, we're not nascent, validate the repo
return self:run_checks()
end