fix: git pull strategy

This commit is contained in:
Simone Corsi
2021-01-16 12:45:29 +01:00
parent 3c3ab0a45f
commit edb4a38f6b

View File

@@ -15,6 +15,7 @@ export default new (class Git {
// Set config
this.config('user.name', 'GitHub Actions');
this.config('user.email', 'actions@users.noreply.github.com');
this.config('pull.rebase', 'false');
// Update the origin
this.updateOrigin(
@@ -53,7 +54,7 @@ export default new (class Git {
commit = (message: string) => this.exec(`commit -m "${message}"`);
pull = async () => {
const args = ['pull'];
const args = ['pull', 'origin', branch];
// Check if the repo is unshallow
if (await this.isShallow()) {