BigW Consortium Gitlab

Commit f30d2b71 by tiagonbotelho

removes debugging prints from code

parent 71eadb6e
...@@ -52,7 +52,7 @@ gem "browser", '~> 2.2' ...@@ -52,7 +52,7 @@ gem "browser", '~> 2.2'
# Extracting information from a git repository # Extracting information from a git repository
# Provide access to Gitlab::Git library # Provide access to Gitlab::Git library
gem "gitlab_git", '~> 10.2', path: "~/src/Gitlab/gitlab_git" gem "gitlab_git", '~> 10.2', git: "git@gitlab.com:gitlab-org/gitlab_git.git", branch: "commit-blob-rename-action"
# LDAP Auth # LDAP Auth
# GitLab fork with several improvements to original library. For full list of changes # GitLab fork with several improvements to original library. For full list of changes
......
PATH GIT
remote: ~/src/Gitlab/gitlab_git remote: git@gitlab.com:gitlab-org/gitlab_git.git
revision: 0e4ac299b806fa4190c4928a1c1ed5372fffbb38
branch: commit-blob-rename-action
specs: specs:
gitlab_git (10.3.0) gitlab_git (10.3.0)
activesupport (~> 4.0) activesupport (~> 4.0)
...@@ -395,7 +397,6 @@ GEM ...@@ -395,7 +397,6 @@ GEM
mail_room (0.8.0) mail_room (0.8.0)
method_source (0.8.2) method_source (0.8.2)
mime-types (2.99.2) mime-types (2.99.2)
mime-types-data (3.2016.0521)
mimemagic (0.3.0) mimemagic (0.3.0)
mini_portile2 (2.1.0) mini_portile2 (2.1.0)
minitest (5.7.0) minitest (5.7.0)
......
...@@ -12,16 +12,8 @@ module CreatesCommit ...@@ -12,16 +12,8 @@ module CreatesCommit
previous_path: @previous_path previous_path: @previous_path
) )
puts "#" * 10
puts @previous_path
puts "#" * 10
result = service.new(@tree_edit_project, current_user, commit_params).execute result = service.new(@tree_edit_project, current_user, commit_params).execute
puts "#" * 30
puts result[:status]
puts "#" * 30
if result[:status] == :success if result[:status] == :success
update_flash_notice(success_notice) update_flash_notice(success_notice)
......
...@@ -761,14 +761,8 @@ class Repository ...@@ -761,14 +761,8 @@ class Repository
if previous_path if previous_path
options[:file].merge!(previous_path: previous_path) options[:file].merge!(previous_path: previous_path)
puts "#" * 90
puts "Hello"
puts "#" * 90
Gitlab::Git::Blob.rename(raw_repository, options) Gitlab::Git::Blob.rename(raw_repository, options)
else else
puts "#" * 90
puts "World"
puts "#" * 90
Gitlab::Git::Blob.commit(raw_repository, options) Gitlab::Git::Blob.commit(raw_repository, options)
end end
end end
......
...@@ -4,9 +4,6 @@ module Files ...@@ -4,9 +4,6 @@ module Files
class UpdateService < Files::BaseService class UpdateService < Files::BaseService
def commit def commit
# Need to update file_path with the new filename # Need to update file_path with the new filename
puts "#" * 10
puts @previous_path
puts "#" * 10
repository.update_file(current_user, @file_path, @previous_path, @file_content, @commit_message, @target_branch, true) repository.update_file(current_user, @file_path, @previous_path, @file_content, @commit_message, @target_branch, true)
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment