diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-17 18:34:43 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-18 14:12:17 +0200 |
commit | faaed0aa1f6b26f6b8f69f1c59ae7faa8ccf9ce5 (patch) | |
tree | 23ce4d9d902d16516f193dc05791e623d082a335 /lib | |
parent | 66afd1ee1cfdefbcc971ab438081e85b6dde044b (diff) | |
download | gitlab-ce-faaed0aa1f6b26f6b8f69f1c59ae7faa8ccf9ce5.tar.gz |
Delete unused Gitlab::Git methods
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 246bfd57787..5152d212a69 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -64,7 +64,6 @@ module Gitlab end delegate :empty?, - :bare?, to: :rugged delegate :exists?, to: :gitaly_repository_client @@ -233,10 +232,6 @@ module Gitlab branch_names + tag_names end - def has_commits? - !empty? - end - # Discovers the default branch based on the repository's available branches # # - If no branches are present, returns nil @@ -594,11 +589,6 @@ module Gitlab raise InvalidRef.new("Invalid reference #{start_point}") end - # Return an array of this repository's remote names - def remote_names - rugged.remotes.each_name.to_a - end - # Delete the specified remote from this repository. def remote_delete(remote_name) rugged.remotes.delete(remote_name) @@ -618,16 +608,6 @@ module Gitlab rugged.remotes.set_url(remote_name, options[:url]) if options[:url] end - # Fetch the specified remote - def fetch(remote_name) - rugged.remotes[remote_name].fetch - end - - # Push +*refspecs+ to the remote identified by +remote_name+. - def push(remote_name, *refspecs) - rugged.remotes[remote_name].push(refspecs) - end - AUTOCRLF_VALUES = { "true" => true, "false" => false, |