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
Jérome Perrin
gitlab-ce
Commits
7783f5ec
Commit
7783f5ec
authored
Jul 31, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve copy test repo cmd
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
a35a22ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
features/steps/explore/groups_feature.rb
features/steps/explore/groups_feature.rb
+0
-1
spec/support/test_env.rb
spec/support/test_env.rb
+5
-4
No files found.
features/steps/explore/groups_feature.rb
View file @
7783f5ec
...
...
@@ -90,4 +90,3 @@ class Spinach::Features::ExploreGroupsFeature < Spinach::FeatureSteps
)
end
end
spec/support/test_env.rb
View file @
7783f5ec
...
...
@@ -49,15 +49,16 @@ module TestEnv
unless
File
.
directory?
(
repo_path
)
git_cmd
=
%W(git clone --bare
#{
clone_url
}
#{
repo_path
}
)
puts
git_cmd
.
inspect
system
(
*
git_cmd
)
end
end
def
copy_repo
(
project
)
base_repo_path
=
repos_path
+
"/root/testme.git"
target_repo_path
=
repos_path
+
"/
#{
project
.
namespace
.
path
}
/
#{
project
.
path
}
.git"
FileUtils
.
cp_r
(
base_repo_path
,
target_repo_path
)
base_repo_path
=
File
.
expand_path
(
repos_path
+
"/root/testme.git"
)
target_repo_path
=
File
.
expand_path
(
repos_path
+
"/
#{
project
.
namespace
.
path
}
/
#{
project
.
path
}
.git"
)
FileUtils
.
mkdir_p
(
target_repo_path
)
FileUtils
.
cp_r
(
"
#{
base_repo_path
}
/."
,
target_repo_path
)
FileUtils
.
chmod_R
0755
,
target_repo_path
end
def
repos_path
...
...
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