diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-04-08 15:11:17 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-04-08 15:11:17 +0100 |
commit | ec05045e9f29a9cb9f7d1a0a9d38b8b3d13275af (patch) | |
tree | ac5760ab44cf2b2da17680d82f7e4f3a5ba55e34 | |
parent | 08a1423a022392b045a483697731ba048a3eebc4 (diff) | |
download | gitano-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.
-rw-r--r-- | lib/gitano/repository.lua | 5 |
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 |