This repository was archived by the owner on Mar 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 88
99if repo_url . present?
1010 upstream = 'origin'
11- if File . exist? ( File . join ( local_dir , '.git' ) )
12- output = `cd #{ local_dir } && git pull #{ upstream } master 2>&1`
13- if $?. success?
14- Rails . logger . info "Pulled #{ repo_url } to #{ local_dir } : #{ output } "
15- else
16- Rails . logger . error "Unable to pull #{ repo_url } to #{ local_dir } : #{ output } "
17- end
18- else
11+ # if File.exist?(File.join(local_dir, '.git'))
12+ # output = `cd #{local_dir} && git pull #{upstream} master 2>&1`
13+ # if $?.success?
14+ # Rails.logger.info "Pulled #{repo_url} to #{local_dir}: #{output}"
15+ # else
16+ # Rails.logger.error "Unable to pull #{repo_url} to #{local_dir}: #{output}"
17+ # end
18+ # else
1919 output = `git clone #{ repo_url } #{ local_dir } 2>&1`
2020 if $?. success?
2121 Rails . logger . info "Cloned #{ repo_url } to #{ local_dir } : #{ output } "
2222 else
2323 Rails . logger . error "Unable to clone #{ repo_url } to #{ local_dir } : #{ output } "
2424 end
2525 # puts "Cloned wiki repo: #{output}"
26- end
26+ # end
2727else
2828 Rails . logger . warn "Initializing #{ local_dir } for local use [WITH NO UPSTREAM BACKUP]"
2929 system "git init #{ local_dir } "
You can’t perform that action at this time.
0 commit comments