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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8cb0a5cd
Commit
8cb0a5cd
authored
May 07, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a local variable and remove status_clean?
parent
975ee23a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
scripts/ee_specific_check/ee_specific_check.rb
scripts/ee_specific_check/ee_specific_check.rb
+4
-6
No files found.
scripts/ee_specific_check/ee_specific_check.rb
View file @
8cb0a5cd
...
...
@@ -100,7 +100,9 @@ module EESpecificCheck
# CE and EE branches.
run_git_command
(
"rebase --onto
#{
ce_merge_base
}
canonical-ce/master
#{
ce_fetch_head
}
"
)
if
status_clean?
status
=
git_status
if
status
==
''
head_commit_sha
else
say
<<~
MESSAGE
...
...
@@ -126,14 +128,10 @@ module EESpecificCheck
run_git_command
(
"rev-parse HEAD"
)
end
def
status
def
git_
status
run_git_command
(
"status --porcelain"
)
end
def
status_clean?
status
==
''
end
def
remove_remotes
run_git_command
(
"remote remove canonical-ee"
,
...
...
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