in lib/gdk/project/git_worktree.rb [69:85]
def pull_ff_only
return true unless revision_is_default?
command = %w[git pull --ff-only]
command << remote_name << GDK.config.gitlab.default_branch if gitlab_repo?
sh = execute_command(command, retry_attempts: NETWORK_RETRIES)
if sh.success?
GDK::Output.success("Successfully pulled (--ff-only) for '#{short_worktree_path}'")
true
else
GDK::Output.puts(sh.read_stderr, stderr: true)
GDK::Output.error("Failed to pull (--ff-only) for for '#{short_worktree_path}'", sh.read_stderr)
false
end
end