Class: GitThin::Fetch
- Includes:
- Action
- Defined in:
- lib/git-thin/command/clone.rb,
lib/git-thin/command/fetch.rb
Constant Summary
Constants included from GitThinUtils
GitThinUtils::LOGA, GitThinUtils::LOGC, GitThinUtils::LOGN, GitThinUtils::LOGNone, GitThinUtils::LOGPRUNE
Instance Method Summary collapse
-
#initialize(argv) ⇒ Fetch
constructor
A new instance of Fetch.
- #run ⇒ Object
Methods included from Action
arguments, description, options, #run_config, #setup, #source_root, summary, #validate!
Methods included from GitThinUtils
#logC, #logE, #logInner, #logN, #logP, #logW, #print_console, #run_shell, #set_progress
Methods inherited from Thin
Constructor Details
#initialize(argv) ⇒ Fetch
12 13 14 15 16 17 |
# File 'lib/git-thin/command/clone.rb', line 12 def initialize(argv) super if @verbose @verbose = LOGC|LOGN end end |
Instance Method Details
#run ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/git-thin/command/clone.rb', line 19 def run shell_ret = 0 run_shell "git -C #{@source_root} clone --filter=blob:none --sparse "+@argv_remainder.join(' '),false ,LOGPRUNE|LOGC do |outs,errs,status| shell_ret = status end if shell_ret != 0 exit(shell_ret+100) end end |