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