Skip to content
Snippets Groups Projects

Added methods to protect and unprotect branches in from the API

Closed gitlab-qa-bot requested to merge github/fork/m4tthumphrey/4-1-sp into master
6 files
+ 38
10
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 1
1
@@ -151,7 +151,7 @@ class Repository
return nil unless commit
# Build file path
file_name = self.path_with_namespace + "-" + commit.id.to_s + ".tar.gz"
file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz"
storage_path = Rails.root.join("tmp", "repositories")
file_path = File.join(storage_path, file_name)
Loading