diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-18 16:03:27 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-18 16:03:27 +0200 |
commit | 3049dfaf48676ecdf53d0d07297432fbaf4ca720 (patch) | |
tree | 71d49f62252d1009a3b724bb6f84727760ad04a1 | |
parent | df7f2b135a1d811761272ef0f9140ae5aa16c01d (diff) | |
download | gitlab-ce-gitaly-annotations-update.tar.gz |
Simplify return valuesgitaly-annotations-update
-rw-r--r-- | lib/gitlab/git/repository.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 39263d9e6fc..eb3731ba35a 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -596,11 +596,13 @@ module Gitlab # Delete the specified remote from this repository. def remote_delete(remote_name) rugged.remotes.delete(remote_name) + nil end - # Add a new remote to this repository. Returns a Rugged::Remote object + # Add a new remote to this repository. def remote_add(remote_name, url) rugged.remotes.create(remote_name, url) + nil end # Update the specified remote using the values in the +options+ hash @@ -610,6 +612,7 @@ module Gitlab def remote_update(remote_name, url:) # TODO: Implement other remote options rugged.remotes.set_url(remote_name, url) + nil end AUTOCRLF_VALUES = { |