summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-05-21 13:56:56 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-05-21 14:52:45 +0300
commit470f55351bfac96a1a17b36c026caec980a31c96 (patch)
treee56e6fbfc33745a900d89c6e21eb708aaf6f5538 /scripts
parentcf7f3606d3bca3dfb481323aaa4f3dc50ca1a089 (diff)
downloadgitlab-ce-470f55351bfac96a1a17b36c026caec980a31c96.tar.gz
Add check for top-level ee directory in CE repo
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/no-ee-check8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/no-ee-check b/scripts/no-ee-check
new file mode 100755
index 00000000000..bd53de5a949
--- /dev/null
+++ b/scripts/no-ee-check
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+ee_path = File.join(File.expand_path(File.dirname(__FILE__)), '../ee')
+result = Dir.exist?(ee_path)
+
+if result
+ puts 'The repository contains /ee directory. There should be no /ee directory in CE repo.'
+ exit 1
+end