Skip to content

Commit 2857410

Browse files
committed
fix(Git): MAke sure to always set 'remote' parameter when pushing
Signed-off-by: Marcel Klehr <[email protected]>
1 parent 1e317c4 commit 2857410

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/adapters/Git.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default class GitAdapter extends CachingAdapter {
250250
Logger.log('(git) tag ' + tag)
251251
await git.tag({ fs: this.fs, dir: this.dir, ref: tag })
252252
Logger.log('(git) push tag ' + tag)
253-
const result = await git.push({ fs: this.fs, http, dir: this.dir, ref: tag, onAuth: () => this.onAuth() })
253+
const result = await git.push({ fs: this.fs, http, dir: this.dir, ref: tag, remote: 'origin', onAuth: () => this.onAuth() })
254254
if (result.error) {
255255
throw new GitPushError(result.error)
256256
}
@@ -275,7 +275,7 @@ export default class GitAdapter extends CachingAdapter {
275275
for (const tag of this.locked) {
276276
Logger.log('(git) push: delete tag ' + tag)
277277
// Ignoring result.error
278-
await git.push({ fs: this.fs, http, dir: this.dir, ref: tag, delete: true, onAuth: () => this.onAuth() })
278+
await git.push({ fs: this.fs, http, dir: this.dir, ref: tag, delete: true, remote: 'origin', onAuth: () => this.onAuth() })
279279
}
280280
this.locked = []
281281
return true
@@ -292,7 +292,7 @@ export default class GitAdapter extends CachingAdapter {
292292
const lockTags = tags.filter(tag => tag.startsWith('floccus-lock-'))
293293
for (const tag of lockTags) {
294294
// ignoring result.error
295-
await git.push({ fs, http, dir: this.dir, ref: tag, delete: true, onAuth: () => this.onAuth() })
295+
await git.push({ fs, http, dir: this.dir, ref: tag, delete: true, remote: 'origin', onAuth: () => this.onAuth() })
296296
}
297297
}
298298

0 commit comments

Comments
 (0)