lib/gitlab_git/repository.rb in gitlab_git-6.1.0 vs lib/gitlab_git/repository.rb in gitlab_git-6.2.0

- old
+ new

@@ -62,12 +62,11 @@ end.sort_by(&:name) end # Returns an Array of tag names def tag_names - # rugged.tags returns array of names - rugged.tags.to_a + rugged.tags.map { |t| t.name } end # Returns an Array of Tags def tags rugged.refs.select do |ref| @@ -164,10 +163,10 @@ prefix = File.basename(self.name) + "/" # Create file if not exists unless File.exists?(file_path) # create archive in temp file - tmp_file = Tempfile.new('gitlab-archive-repo') + tmp_file = Tempfile.new('gitlab-archive-repo', storage_path) self.grit.archive_to_file(ref, prefix, tmp_file.path, git_archive_format, pipe_cmd) # move temp file to persisted location FileUtils.mkdir_p File.dirname(file_path) FileUtils.move(tmp_file.path, file_path)