Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
roja opened this issue Feb 11, 2022 · 0 comments
Open

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

roja opened this issue Feb 11, 2022 · 0 comments

Comments

@roja
Copy link

roja commented Feb 11, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant