lib/open_project/gitolite/commands/gitolite.rb
def sudo_repository_empty?(repo_path)
        repo_path = File.join(gitolite_home_dir, repo_path, 'objects')
        count = sudo_git_objects_count(repo_path)
        count.to_i == 0
      end
# Test if repository is empty on Gitolite side
#
Test if repository is empty on Gitolite side
Test if repository is empty on Gitolite side
def sudo_repository_empty?(repo_path)
        repo_path = File.join(gitolite_home_dir, repo_path, 'objects')
        count = sudo_git_objects_count(repo_path)
        count.to_i == 0
      end
def sudo_repository_empty? ( repo_path ) repo_path = File . join ( gitolite_home_dir , repo_path , 'objects' ) count = sudo_git_objects_count ( repo_path ) count . to_i == 0 end
Test if repository is empty on Gitolite side
Test if repository is empty on Gitolite side
repo_path