Read project config from data/ (decomp.json, compile.json, toolchain.lock.json)
This commit is contained in:
parent
7964a0cb2a
commit
91c799f7d3
13 changed files with 20 additions and 20 deletions
|
|
@ -119,7 +119,7 @@ test('public info, symbol snapshot, and the target is not served by default', as
|
|||
test('the repository can be cloned over HTTP but not pushed to', async () => {
|
||||
const dest = path.join(dataDir, 'clone');
|
||||
await promisify(execFile)("git", ["clone", "-q", `${base}/repo.git`, dest]);
|
||||
assert.ok(fs.existsSync(path.join(dest, 'decomp.json')));
|
||||
assert.ok(fs.existsSync(path.join(dest, 'data', 'decomp.json')));
|
||||
const res = await fetch(`${base}/repo.git/info/refs?service=git-receive-pack`);
|
||||
assert.equal(res.status, 403);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue