diff options
author | Sergey Sinev <xeodon@gmail.com> | 2018-04-25 20:37:52 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-05-19 06:47:46 +0300 |
commit | 100c687cbc49c592afc1c08bfda9e21d97a115b1 (patch) | |
tree | 2c648eeee56451927a3cee0d1a408e652f85a376 /lib/gitlab | |
parent | 8bacfbd1cc4f6c3678d50dd516df2b59eb0c8864 (diff) |
Fix error when deleting an empty list of refs
Closes #45743
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index b521d69930a..5617d7c1c41 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -2346,7 +2346,7 @@ module Gitlab end def gitaly_delete_refs(*ref_names) - gitaly_ref_client.delete_refs(refs: ref_names) + gitaly_ref_client.delete_refs(refs: ref_names) if ref_names.any? end def rugged_remove_remote(remote_name) |