Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
643ed9cb
Commit
643ed9cb
authored
Oct 25, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in Gitlab::Merge
parent
0447ab37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/merge.rb
lib/gitlab/merge.rb
+4
-4
No files found.
lib/gitlab/merge.rb
View file @
643ed9cb
...
@@ -19,7 +19,7 @@ module Gitlab
...
@@ -19,7 +19,7 @@ module Gitlab
# It also removes the source branch if requested in the merge request.
# It also removes the source branch if requested in the merge request.
#
#
# Returns false if the merge produced conflicts
# Returns false if the merge produced conflicts
# Returns false if pushing from the sat
a
llite to Gitolite failed or was rejected
# Returns false if pushing from the sat
e
llite to Gitolite failed or was rejected
# Returns true otherwise
# Returns true otherwise
def
merge!
def
merge!
in_locked_and_timed_satellite
do
|
merge_repo
|
in_locked_and_timed_satellite
do
|
merge_repo
|
...
@@ -46,7 +46,7 @@ module Gitlab
...
@@ -46,7 +46,7 @@ module Gitlab
# * Sets a 30s timeout for Git
# * Sets a 30s timeout for Git
# * Locks the satellite repo
# * Locks the satellite repo
# * Yields the prepared sat
a
llite repo
# * Yields the prepared sat
e
llite repo
def
in_locked_and_timed_satellite
def
in_locked_and_timed_satellite
Grit
::
Git
.
with_timeout
(
30
.
seconds
)
do
Grit
::
Git
.
with_timeout
(
30
.
seconds
)
do
lock_file
=
Rails
.
root
.
join
(
"tmp"
,
"
#{
project
.
path
}
.lock"
)
lock_file
=
Rails
.
root
.
join
(
"tmp"
,
"
#{
project
.
path
}
.lock"
)
...
@@ -78,7 +78,7 @@ module Gitlab
...
@@ -78,7 +78,7 @@ module Gitlab
# Returns false if the merge produced conflicts
# Returns false if the merge produced conflicts
# Returns true otherwise
# Returns true otherwise
def
merge_in_satellite!
(
repo
)
def
merge_in_satellite!
(
repo
)
prepare_satelite!
(
repo
)
prepare_satel
l
ite!
(
repo
)
# create target branch in satellite at the corresponding commit from Gitolite
# create target branch in satellite at the corresponding commit from Gitolite
repo
.
git
.
checkout
({
b:
true
},
merge_request
.
target_branch
,
"origin/
#{
merge_request
.
target_branch
}
"
)
repo
.
git
.
checkout
({
b:
true
},
merge_request
.
target_branch
,
"origin/
#{
merge_request
.
target_branch
}
"
)
...
@@ -93,7 +93,7 @@ module Gitlab
...
@@ -93,7 +93,7 @@ module Gitlab
# * Clears the satellite
# * Clears the satellite
# * Updates the satellite from Gitolite
# * Updates the satellite from Gitolite
# * Sets up Git variables for the user
# * Sets up Git variables for the user
def
prepare_satelite!
(
repo
)
def
prepare_satel
l
ite!
(
repo
)
project
.
satellite
.
clear
project
.
satellite
.
clear
repo
.
git
.
reset
(
hard:
true
)
repo
.
git
.
reset
(
hard:
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment