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
d2e73457
Commit
d2e73457
authored
May 15, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure after checking out it's clean
parent
de29d2ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
scripts/ee_specific_check/ee_specific_check.rb
scripts/ee_specific_check/ee_specific_check.rb
+10
-7
No files found.
scripts/ee_specific_check/ee_specific_check.rb
View file @
d2e73457
...
...
@@ -27,12 +27,7 @@ module EESpecificCheck
end
def
find_compare_base
# We're still seeing errors not ignoring knapsack/ and rspec_flaky/
# Instead of waiting that populate over all the branches, we could
# just remove untracked files anyway, only on CI of course in case
# we're wiping people's data!
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/5912
git_clean
if
ENV
[
'CI'
]
git_clean
setup_canonical_remotes
...
...
@@ -76,6 +71,7 @@ module EESpecificCheck
# Use detached HEAD so that we don't update HEAD
run_git_command
(
"checkout -f
#{
ce_fetch_head
}
"
)
git_clean
# We rebase onto the commit which is the latest commit presented in both
# CE and EE, i.e. ce_merge_base, cutting off commits aren't merged into
...
...
@@ -137,6 +133,7 @@ module EESpecificCheck
ensure
# ensure would still run if we call exit, don't worry
# Make sure to switch back
run_git_command
(
"checkout -f
#{
head
}
"
)
git_clean
end
def
head_commit_sha
...
...
@@ -148,7 +145,13 @@ module EESpecificCheck
end
def
git_clean
run_git_command
(
'clean -fd'
)
# We're still seeing errors not ignoring knapsack/ and rspec_flaky/
# Instead of waiting that populate over all the branches, we could
# just remove untracked files anyway, only on CI of course in case
# we're wiping people's data!
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/5912
# Also see https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/68194333
run_git_command
(
'clean -fd'
)
if
ENV
[
'CI'
]
end
def
remove_remotes
...
...
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