[file-store-4] small script changes
This commit is contained in:
parent
4d58ff5019
commit
53eda3fbf7
|
@ -43,7 +43,7 @@ Dir.glob("*.{tar\.bz2,tar\.gz,bz2,rar,gz,tar,tbz2,tgz,zip,Z,7z,tar\.xz}").uniq.s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
sources = (old_sources | new_sources)
|
sources = (old_sources | new_sources)
|
||||||
unless sources.empty?
|
unless new_sources.empty?
|
||||||
File.open(abf_yml, 'w') do |abf|
|
File.open(abf_yml, 'w') do |abf|
|
||||||
abf.puts 'sources:'
|
abf.puts 'sources:'
|
||||||
(old_sources | new_sources).sort.each {|line| abf.puts line}
|
(old_sources | new_sources).sort.each {|line| abf.puts line}
|
||||||
|
|
|
@ -39,7 +39,7 @@ Dir.glob(owners).each do |owner|
|
||||||
end
|
end
|
||||||
|
|
||||||
if archives_exists
|
if archives_exists
|
||||||
system "git filter-branch -d /dev/shm/git_task --tree-filter \"/home/rosa/git_task/file-store.rb #{token} #{path}\" --prune-empty --tag-name-filter cat -- --all"
|
system "git filter-branch -d /dev/shm/git_task --tree-filter \"/home/rosa/git_task/file-store.rb #{token}\" --prune-empty --tag-name-filter cat -- --all"
|
||||||
#####
|
#####
|
||||||
# This is dangerous !!!
|
# This is dangerous !!!
|
||||||
system "rm -rf #{dest_project_path} && git clone --bare #{path} #{dest_project_path}"
|
system "rm -rf #{dest_project_path} && git clone --bare #{path} #{dest_project_path}"
|
||||||
|
|
Loading…
Reference in New Issue