Skip to content

A platform for community discussion. Free, open, simple.

DEV: Use the --no-rebase option of `git pull` (#16180)

Jarek Radosz8d5281115e1b
diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake
index 71a573ebe59..8c31bbe0f80 100644
--- a/lib/tasks/plugin.rake
+++ b/lib/tasks/plugin.rake
@@ -102,7 +102,7 @@ task 'plugin:update', :plugin do |t, args|
`git -C '#{plugin_path}' branch -u origin/main main`
end
- update_status = system("git -C '#{plugin_path}' pull")
+ update_status = system("git -C '#{plugin_path}' pull --no-rebase")
abort("Unable to pull latest version of plugin #{plugin_path}") unless update_status
end