Skip to content
Snippets Groups Projects
Commit 6771c1e2 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Trust after init

parent ed1d31d8
No related branches found
No related tags found
No related merge requests found
v0.2.1
- Automatically trust directory after 'gdk init'
v0.2.0
- Fix clone command (use default branch)
- Add trusted_directories dotfile setting
Loading
Loading
@@ -18,10 +18,9 @@ module GDK
puts "Usage: gdk init [DIR]"
return false
end
cmd = %W(git clone https://gitlab.com/gitlab-org/gitlab-development-kit.git)
cmd << ARGV[1] if ARGV.count == 2
system(*cmd)
directory = ARGV.count == 2 ? ARGV[1] : 'gitlab-development-kit'
cmd = %W(git clone https://gitlab.com/gitlab-org/gitlab-development-kit.git #{directory})
system(*cmd) && trust!(directory)
when 'trust'
if ARGV.count != 2
puts "Usage: gdk trust DIR"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment