fix(core): update
This commit is contained in:
parent
6cc245ae7e
commit
201a5014ed
399
package-lock.json
generated
399
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -24,20 +24,20 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/smartgit",
|
"homepage": "https://gitlab.com/pushrocks/smartgit",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^7.0.2",
|
"@pushrocks/smartfile": "^7.0.4",
|
||||||
"@pushrocks/smartpath": "^4.0.1",
|
"@pushrocks/smartpath": "^4.0.1",
|
||||||
"@pushrocks/smartpromise": "^3.0.2",
|
"@pushrocks/smartpromise": "^3.0.2",
|
||||||
"@pushrocks/smartshell": "^2.0.23",
|
"@pushrocks/smartshell": "^2.0.23",
|
||||||
"@pushrocks/smartstring": "^3.0.10",
|
"@pushrocks/smartstring": "^3.0.10",
|
||||||
"@types/minimatch": "^3.0.3",
|
"@types/minimatch": "^3.0.3",
|
||||||
"@types/nodegit": "^0.24.8",
|
"@types/nodegit": "^0.24.10",
|
||||||
"nodegit": "^0.24.3"
|
"nodegit": "^0.25.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.11",
|
"@gitzone/tsbuild": "^2.1.17",
|
||||||
"@gitzone/tstest": "^1.0.24",
|
"@gitzone/tstest": "^1.0.24",
|
||||||
"@pushrocks/tapbundle": "^3.0.9",
|
"@pushrocks/tapbundle": "^3.0.13",
|
||||||
"tslint": "^5.17.0",
|
"tslint": "^5.19.0",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"private": false,
|
"private": false,
|
||||||
|
@ -42,6 +42,12 @@ export class GitRepo {
|
|||||||
public async listRemotes(): Promise<string[]> {
|
public async listRemotes(): Promise<string[]> {
|
||||||
return this.nodegitRepo.getRemotes();
|
return this.nodegitRepo.getRemotes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ensures the existance of a remote within a repository
|
||||||
|
* @param remoteNameArg
|
||||||
|
* @param remoteUrlArg
|
||||||
|
*/
|
||||||
public async ensureRemote(remoteNameArg: string, remoteUrlArg: string): Promise<void> {
|
public async ensureRemote(remoteNameArg: string, remoteUrlArg: string): Promise<void> {
|
||||||
const existingUrl = await this.getUrlForRemote(remoteNameArg);
|
const existingUrl = await this.getUrlForRemote(remoteNameArg);
|
||||||
if (existingUrl === remoteUrlArg) {
|
if (existingUrl === remoteUrlArg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user