From 164b8845fa66747d931668a803e05cd885ae88e5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 29 Jul 2024 10:51:09 +0200 Subject: [PATCH] wait #7004 @0.5 --- src/CommandLine/Git.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CommandLine/Git.php b/src/CommandLine/Git.php index e907454..e5f9f7f 100644 --- a/src/CommandLine/Git.php +++ b/src/CommandLine/Git.php @@ -70,8 +70,10 @@ class Git extends CommandLine { $args = ''; if ($rebase) { + self::executeCommand($repos, 'stash', $debug); $args .= '--rebase'; } + $res = self::executeCommand($repos, 'pull ' . $args, $debug); $changes = (trim($res) !== 'Already up to date.'); if ($restoreMtime && $changes) { -- 2.39.5