You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
357 B
15 lines
357 B
5 years ago
|
const State = require('../State')
|
||
|
const Repository = require('../../git/Repository')
|
||
|
|
||
|
class AbstractGitState extends State {
|
||
|
|
||
|
async _repo() {
|
||
|
const path = await this._host.get_path(this._config.path)
|
||
|
if ( !path.is_valid() ) await path.touch(true)
|
||
|
return new Repository(path)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = exports = AbstractGitState
|