Commit 69bbccf3 authored by Ivanq's avatar Ivanq

Repo: Replace 'repo.git' with 'content.json' 'git' property

parent b7b24865
......@@ -5,8 +5,6 @@ class Repository {
this.zeroFS = new ZeroFS(zeroPage);
this.zeroAuth = new ZeroAuth(zeroPage);
this.zeroDB = new ZeroDB(zeroPage);
this.git = new Git("merged-GitCenter/" + address + "/repo.git", zeroPage);
}
// Permission actions
......@@ -38,6 +36,16 @@ class Repository {
if(!list["1iNDExENNBsfHc6SKmy1HaeasHhm3RPcL"]) {
return this.zeroPage.cmd("mergerSiteAdd", ["1iNDExENNBsfHc6SKmy1HaeasHhm3RPcL"]);
}
})
.then(() => {
return this.getContent();
})
.then(content => {
if(content.git) {
this.git = new Git("merged-GitCenter/" + this.address + "/" + content.git, zeroPage);
} else {
this.git = null;
}
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment