lib/kuzushi.rb in kuzushi-0.0.39 vs lib/kuzushi.rb in kuzushi-0.0.40
- old
+ new
@@ -321,12 +321,12 @@
def git_fetch(f)
task "install packages" do
FileUtils.mkdir_p(f.file)
shell "cd #{f.file} && git init"
shell "cd #{f.file} && git remote add origin #{f.git}"
- shell "cd #{f.file} && git fetch"
- shell "cd #{f.file} && git checkout master"
- shell "chown -R #{f.user}:#{f.group} #{f.dir}" if f.user || f.group ## is this needed? handled above in files?
+ shell "cd #{f.file} && git fetch origin"
+ shell "cd #{f.file} && git checkout -b master --track origin/master"
+ shell "chown -R #{f.user}:#{f.group} #{f.file}" if f.user || f.group ## is this needed? handled above in files?
end
end
### this needs to be brought up to date - way last version - no need to read and filter...
def fetch(file, filter = lambda { |d| d }, &block)