Fix bug.
This commit is contained in:
parent
c8c6f43d71
commit
e0e07be565
|
@ -52,9 +52,9 @@ module PersonalPluginGenerator
|
|||
end
|
||||
git = 'git_1.9.1/usr/bin/git'
|
||||
end
|
||||
@branch = `git rev-parse --abbrev-ref HEAD`.gsub("\n","")
|
||||
new_commit_id = `git log #{@branch}..origin/#{@branch} --pretty=format:"%H"`
|
||||
new_updates = %x(git log #{@branch}..origin/#{@branch} --pretty=format:"%ad' , '%s" --date=short).split("\n").map{|log| log.gsub("'","")}
|
||||
@branch = %x(#{git} rev-parse --abbrev-ref HEAD).gsub("\n","")
|
||||
new_commit_id = %x(#{git} log #{@branch}..origin/#{@branch} --pretty=format:"%H")
|
||||
new_updates = %x(#{git} log #{@branch}..origin/#{@branch} --pretty=format:"%ad' , '%s" --date=short).split("\n").map{|log| log.gsub("'","")}
|
||||
if new_commit_id.present?
|
||||
git_add_except_public = Dir['*'].select{|v| v!= 'public' && v!= 'log' && v != 'dump' && v != 'tmp'}.collect do |v|
|
||||
"#{git} add -f --all --ignore-errors '#{v}'"
|
||||
|
|
Loading…
Reference in New Issue