Commit 60959df3f276d7f50a9a3c759e4fc871183aa0d4

Authored by Dmitriy Zaporozhets
1 parent 8841eec4

Remove gitolite mention

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
lib/gitlab/satellite/files/edit_file_action.rb
... ... @@ -8,13 +8,13 @@ module Gitlab
8 8 #
9 9 # Returns false if the ref has been updated while editing the file
10 10 # Returns false if committing the change fails
11   - # Returns false if pushing from the satellite to Gitolite failed or was rejected
  11 + # Returns false if pushing from the satellite to bare repo failed or was rejected
12 12 # Returns true otherwise
13 13 def commit!(content, commit_message)
14 14 in_locked_and_timed_satellite do |repo|
15 15 prepare_satellite!(repo)
16 16  
17   - # create target branch in satellite at the corresponding commit from Gitolite
  17 + # create target branch in satellite at the corresponding commit from bare repo
18 18 repo.git.checkout({raise: true, timeout: true, b: true}, ref, "origin/#{ref}")
19 19  
20 20 # update the file in the satellite's working dir
... ... @@ -26,7 +26,7 @@ module Gitlab
26 26 repo.git.commit(raise: true, timeout: true, a: true, m: commit_message)
27 27  
28 28  
29   - # push commit back to Gitolite
  29 + # push commit back to bare repo
30 30 # will raise CommandFailed when push fails
31 31 repo.git.push({raise: true, timeout: true}, :origin, ref)
32 32  
... ...
lib/gitlab/satellite/files/new_file_action.rb
... ... @@ -7,13 +7,13 @@ module Gitlab
7 7 #
8 8 # Returns false if the ref has been updated while editing the file
9 9 # Returns false if committing the change fails
10   - # Returns false if pushing from the satellite to Gitolite failed or was rejected
  10 + # Returns false if pushing from the satellite to bare repo failed or was rejected
11 11 # Returns true otherwise
12 12 def commit!(content, commit_message)
13 13 in_locked_and_timed_satellite do |repo|
14 14 prepare_satellite!(repo)
15 15  
16   - # create target branch in satellite at the corresponding commit from Gitolite
  16 + # create target branch in satellite at the corresponding commit from bare repo
17 17 repo.git.checkout({raise: true, timeout: true, b: true}, ref, "origin/#{ref}")
18 18  
19 19 # update the file in the satellite's working dir
... ... @@ -28,7 +28,7 @@ module Gitlab
28 28 repo.git.commit(raise: true, timeout: true, a: true, m: commit_message)
29 29  
30 30  
31   - # push commit back to Gitolite
  31 + # push commit back to bare repo
32 32 # will raise CommandFailed when push fails
33 33 repo.git.push({raise: true, timeout: true}, :origin, ref)
34 34  
... ...
lib/gitlab/satellite/merge_action.rb
... ... @@ -28,7 +28,7 @@ module Gitlab
28 28 in_locked_and_timed_satellite do |merge_repo|
29 29 prepare_satellite!(merge_repo)
30 30 if merge_in_satellite!(merge_repo)
31   - # push merge back to Gitolite
  31 + # push merge back to bare repo
32 32 # will raise CommandFailed when push fails
33 33 merge_repo.git.push(default_options, :origin, merge_request.target_branch)
34 34 # remove source branch
... ...
lib/gitlab/satellite/satellite.rb
... ... @@ -123,7 +123,7 @@ module Gitlab
123 123 remotes.each { |name| repo.git.remote(default_options,'rm', name)}
124 124 end
125 125  
126   - # Updates the satellite from Gitolite
  126 + # Updates the satellite from bare repo
127 127 #
128 128 # Note: this will only update remote branches (i.e. origin/*)
129 129 def update_from_source!
... ...