lib/ComponentSynchronizer.rb in pixab-1.1.2 vs lib/ComponentSynchronizer.rb in pixab-1.1.3
- old
+ new
@@ -103,9 +103,10 @@
repo_commite_id = {}
repos.each do |repo|
repo_name = repo["name"]
repo_target_branch = repo["target_branch"]
FileUtils.cd("#{repo_manager.root_path}/#{repo_name}")
+ `git fetch origin #{repo_target_branch}`
commit_id = `git log origin/#{repo_target_branch} -n 1 --pretty=format:"%H"`
if !commit_id.nil?
repo_commite_id[repo_name] = commit_id
end
end