timqian / weekly-report

weekly report from git commits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No output for git name with space

aelam opened this issue · comments

通过 npm install -g weekly-report 安装

切换到含有git仓库的目录, 没有任何输出
切换到git仓库的下面, 没有任何输出

What system did you use? This tool has only tested on my mac.
What version of node did use?
How did you run weekly-report?

running on mac
node version:v5.4.1
cd /path/to/git_repo/parent then run wr no output
cd /path/to/git_repo then run wr no output

I tried v5.4.1 on my mac, but it works fine.

I think maybe it is because you don't have commits in the last 7 days :)

If not, can you try to run

DEBUG=* wr

and past the out put here?

I was thinking if it's the name matter.
now I am sure it's the reason. My git user.name contains a space

  index generate log for:  /Users/jenkins/Desktop/components/mskeyboard +89ms
  oneReport gitLogCommentToRun:  cd /Users/jenkins/Desktop/components/mskeyboard && git log --after 2016-12-16 --author Ryan Wang +90ms

getOneReports.js

  const gitLogCommentToRun = `cd ${dirname} && git log --after ${dateStr} --author '${name}'`;

Cool, I have updated the code according to your comment. Plz install again and try

How about the ${dirname} . it also could contain space?
const gitLogCommentToRun = cd ${dirname} && git log --after ${dateStr} --author '${name}';

Yeah, thanks