Skip to content

list index out of range #88

@kajalpani

Description

@kajalpani

I am getting the following error when I try to execute
./gitstats -c start_date="$(date +%Y-%m-%d -d "3 month ago")" "/repository/<repo_name>/.git" "/repository/gitresult"

Error:
[0.00403] >> git shortlog -s --since="2018-05-29" "HEAD" | wc -l
[0.00518] >> git show-ref --tags
[0.00352] >> git rev-list --pretty=format:"%at %ai %aN <%aE>" --since="2018-05-29" "HEAD" | grep -v ^commit
Traceback (most recent call last):
File "./gitstats", line 1490, in
g.run(sys.argv[1:])
File "./gitstats", line 1465, in run
data.collect(gitpath)
File "./gitstats", line 338, in collect
timezone = parts[3]
IndexError: list index out of range

Surprisingly, It works when I change the date to 4 month ago. I have no idea why it the error is occurring. Is it something related to different commits in repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions