diff options
Diffstat (limited to 'spec/services/git/tag_hooks_service_spec.rb')
-rw-r--r-- | spec/services/git/tag_hooks_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/git/tag_hooks_service_spec.rb b/spec/services/git/tag_hooks_service_spec.rb index dae2f63f2f9..2d50c64d63c 100644 --- a/spec/services/git/tag_hooks_service_spec.rb +++ b/spec/services/git/tag_hooks_service_spec.rb @@ -138,7 +138,7 @@ RSpec.describe Git::TagHooksService, :service do before do # Create the lightweight tag - rugged_repo(project.repository).tags.create(tag_name, newrev) + project.repository.write_ref("refs/tags/#{tag_name}", newrev) # Clear tag list cache project.repository.expire_tags_cache |