Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future-proofed logging against all 8.x branches #69

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ git pull
echo "Updating Sub Repos"

if [ ! -d "./drupal" ]; then
git clone --branch 8.x http://git.drupal.org/project/drupal.git
git clone --branch 8.0.x http://git.drupal.org/project/drupal.git drupal
else
cd ./drupal
git pull
git fetch --all
cd ../
fi

Expand Down
2 changes: 1 addition & 1 deletion companies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
i = 1;
lastOrder = -1;
lastMentions = 0;
%x[git --git-dir=drupal/.git --work-tree=drupal log 8.0.x --since=2011-03-09 -s --format=%s].split("\n").each do |m|
%x[git --git-dir=drupal/.git --work-tree=drupal log --remotes=origin/8.* --since=2011-03-09 -s --format=%s].split("\n").each do |m|
m.scan(/\s(?:by\s?)([[:word:]\s,.|]+):/i).each do |people|
people[0].split(/(?:,|\||\band\b|\bet al(?:.)?)/).each do |p|
name = p.gsub(/\-/, '_').strip.downcase
Expand Down
2 changes: 1 addition & 1 deletion cores.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

log_args = ARGV[0] || '--since=2011-03-09'
git_command = 'git --git-dir=drupal/.git --work-tree=drupal log 8.0.x ' + log_args + ' -s --format=%s'
git_command = 'git --git-dir=drupal/.git --work-tree=drupal log --remotes=origin/8.* ' + log_args + ' -s --format=%s'

Encoding.default_external = Encoding::UTF_8
require 'erb'
Expand Down
2 changes: 1 addition & 1 deletion json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

name_mappings = YAML::load_file('./name_mappings.yml')
contributors = Hash.new(0)
%x[git --git-dir=drupal/.git --work-tree=drupal log 8.x --since=2011-03-09 -s --format=%s].split("\n").each do |m|
%x[git --git-dir=drupal/.git --work-tree=drupal log --remotes=origin/8.* --since=2011-03-09 -s --format=%s].split("\n").each do |m|
m.gsub(/\-/, '_').scan(/\s(?:by\s?)([[:word:]\s,.|]+):/i).each do |people|
people[0].split(/[,|]/).each do |p|
name = p.strip.downcase
Expand Down