diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-17 00:06:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-17 00:06:39 +0300 |
commit | d62742b0169769191b32038cf20445a47db3b287 (patch) | |
tree | 0b718d822d0b3bffac1973dcff11b56853e664a2 /gems | |
parent | e18006fc6313b1d04128416cdb5f1533adcdb53e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'gems')
-rw-r--r-- | gems/gitlab-housekeeper/lib/gitlab/housekeeper/runner.rb | 3 | ||||
-rw-r--r-- | gems/gitlab-housekeeper/spec/gitlab/housekeeper/runner_spec.rb | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gems/gitlab-housekeeper/lib/gitlab/housekeeper/runner.rb b/gems/gitlab-housekeeper/lib/gitlab/housekeeper/runner.rb index 45d52a0bd8b..1be94e15f37 100644 --- a/gems/gitlab-housekeeper/lib/gitlab/housekeeper/runner.rb +++ b/gems/gitlab-housekeeper/lib/gitlab/housekeeper/runner.rb @@ -77,7 +77,8 @@ module Gitlab puts puts '=> Diff:' - puts Shell.execute('git', '--no-pager', 'diff', 'master', branch_name, '--', *change.changed_files) + puts Shell.execute('git', '--no-pager', 'diff', '--color=always', 'master', branch_name, '--', + *change.changed_files) puts end diff --git a/gems/gitlab-housekeeper/spec/gitlab/housekeeper/runner_spec.rb b/gems/gitlab-housekeeper/spec/gitlab/housekeeper/runner_spec.rb index d1fdbcb1004..d3267cb001f 100644 --- a/gems/gitlab-housekeeper/spec/gitlab/housekeeper/runner_spec.rb +++ b/gems/gitlab-housekeeper/spec/gitlab/housekeeper/runner_spec.rb @@ -83,13 +83,13 @@ RSpec.describe ::Gitlab::Housekeeper::Runner do # Branches get shown and pushed expect(::Gitlab::Housekeeper::Shell).to receive(:execute) - .with('git', '--no-pager', 'diff', 'master', + .with('git', '--no-pager', 'diff', '--color=always', 'master', 'the-identifier-for-the-first-change', '--', 'change1.txt', 'change2.txt') expect(::Gitlab::Housekeeper::Shell).to receive(:execute) .with('git', 'push', '-f', 'housekeeper', 'the-identifier-for-the-first-change:the-identifier-for-the-first-change') expect(::Gitlab::Housekeeper::Shell).to receive(:execute) - .with('git', '--no-pager', 'diff', 'master', + .with('git', '--no-pager', 'diff', '--color=always', 'master', 'the-identifier-for-the-second-change', '--', 'change1.txt', 'change2.txt') expect(::Gitlab::Housekeeper::Shell).to receive(:execute) .with('git', 'push', '-f', 'housekeeper', |