modess / git-pretty-stats

Self hosted graphs for Git repositories in PHP
Other
142 stars 24 forks source link

Something went wrong... #2

Closed maxferrario closed 10 years ago

maxferrario commented 10 years ago

Hi, I just installed the software and I'm getting this error:

Something went wrong...

usage: git rev-list [OPTION] ... [ -- paths... ] limiting output: --max-count=nr --max-age=epoch --min-age=epoch --sparse --no-merges --remove-empty --all --branches --tags --remotes --stdin --quiet ordering output: --topo-order --date-order --reverse formatting output: --parents --children --objects | --objects-edge --unpacked --header | --pretty --abbrev=nr | --no-abbrev --abbrev-commit --left-right special purpose: --bisect --bisect-vars --bisect-all

I am not a git expert, so even if I found the lines in git-pretty-stats that call the "git rev-list" command, I have no idea what I could do to fix it...

Thanks, Massimo

modess commented 10 years ago

It's using git rev-list --count HEAD to count the number of commits in the repository. From your output it doesn't seem your git have that option for rev-list. Which version does it say you are running if you run git --version?

maxferrario commented 10 years ago

git version is 1.7.1: should I upgrade/downgrade it?

modess commented 10 years ago

Okay thank you. Looking at the documentation for git rev-list in 1.7.1 it does not have the --count option. Looking at the documentation for git rev-list in 1.7.2, it's there. So it was first introduced in 1.7.2.

I'll try to add backwards compability for it, but I also need to make sure that nothing else breaks in 1.7.1. If it does I'll add 1.7.2 as a requirement.

maxferrario commented 10 years ago

OK, thanks. I'll try to upgreade do 1.7.2 then.