generate-graphs.py: parse git log as part of UCT git conversion
Parse the output of git log to generate graphs of new CVEs added over
time.
By default, git doesn't like to look at very many add/remove pairs when
considering to treat them as renames, so if there are a large number
of file renames, then git coughs up a lung. The -l65000 argument to
git log ups the limit where that happens.
On the upside, the complicated git log command runs orders of magnitude
faster than bzr log, making it reasonable to run more frequently than
daily.
Signed-off-by: Steve Beattie <email address hidden>
generate-graph.py: fix chdir breakage when in $UCT
os.path.dirname() returns '' if active is an immediate subdirectory of
CWD, which then causes chdir() to fail. Only call chdir if it would do
anything.
Signed-off-by: Steve Beattie <email address hidden>