On Fri, Aug 21, 2020 at 10:37:06AM +0800, Bai Jing wrote:
problem : sh: line 0: cd: /home/baijing/.am/todo: No such file or directory
Please ignore this email.
Signed-off-by: Bai Jing baijing14@huawei.com
bin/git-count | 7 +++++-- people/BaiJing/credit/2020-08-21.md | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 people/BaiJing/credit/2020-08-21.md
diff --git a/bin/git-count b/bin/git-count index 2b1359b..5799054 100755 --- a/bin/git-count +++ b/bin/git-count @@ -56,9 +56,12 @@ end
count_by_name.sort_by { |k, _v| k }
+%x(mkdir -p #{ENV['HOME']}/.am) unless File.exist?("#{ENV['HOME']}/.am") repos.each do |repo, files|
- %x(git -C ~/.am/#{repo} pull --rebase)
- %x(cd ~/.am/#{repo} && git shortlog -ens --no-merges --since "#{days} days ago" -- #{files}).each_line do |line|
- %x(cd #{ENV['HOME']}/.am/ && git clone file:///c/#{repo}.git) unless File.exist?("#{ENV['HOME']}/.am/#{repo}")
- %x(git -C #{ENV['HOME']}/.am/#{repo} pull --rebase 2>&1)
- file = %x(cd #{ENV['HOME']}/.am/#{repo} && git shortlog -ens --no-merges --since "#{days} days ago" -- #{files})
- file.each_line do |line| if line =~ /(\d+)\t(.*) <(.*)>/ count = $1.to_i name = $2
diff --git a/people/BaiJing/credit/2020-08-21.md b/people/BaiJing/credit/2020-08-21.md new file mode 100644 index 0000000..f1357b0 --- /dev/null +++ b/people/BaiJing/credit/2020-08-21.md @@ -0,0 +1,5 @@ +Tong Qunfeng +Yu Chuan +Wei Jihui +Liu Shaofei
+Ren Wen
2.23.0