git-history icon indicating copy to clipboard operation
git-history copied to clipboard

--full-version flag breaks ability to run git-history more than once

Open roja opened this issue 3 years ago • 0 comments

Causes error:

> git-history file results.db results.json --id unique_id --full-versions

Traceback (most recent call last):
  File "/home/codespace/.local/bin/git-history", line 8, in <module>
    sys.exit(cli())
  File "/home/codespace/.local/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/codespace/.local/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/codespace/.local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/codespace/.local/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/codespace/.local/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/codespace/.local/lib/python3.8/site-packages/git_history/cli.py", line 187, in file
    item_id_to_version, item_id_to_last_full_hash = get_versions_and_hashes(
  File "/home/codespace/.local/lib/python3.8/site-packages/git_history/cli.py", line 555, in get_versions_and_hashes
    for row in db.query(sql):
  File "/home/codespace/.local/lib/python3.8/site-packages/sqlite_utils/db.py", line 412, in query
    cursor = self.execute(sql, params or tuple())
  File "/home/codespace/.local/lib/python3.8/site-packages/sqlite_utils/db.py", line 424, in execute
    return self.conn.execute(sql, parameters)
sqlite3.OperationalError: no such column: item_version._item_full_hash

roja avatar Feb 11 '22 17:02 roja