andrewshadura / git-crecord

Git subcommand to interactively select changes to commit or stage
GNU General Public License v2.0
196 stars 12 forks source link

Patch error with `noprefix = true` in gitconfig #57

Open carun opened 3 weeks ago

carun commented 3 weeks ago

image

andrewshadura commented 3 weeks ago

Thanks, I think I have a fix for this one.

andrewshadura commented 3 weeks ago

Can you please test commit fe8f08e (branch fix-57)?

carun commented 3 weeks ago

Thanks @andrewshadura I'm using crecord via pip now. How do I use the custom version, could you please show me?

$ pip list | grep git-crecord
git-crecord         20230226.0
carun commented 2 weeks ago
$ git cr
Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/arun/.local/bin/git-crecord", line 4, in <module>
    main()
  File "/home/arun/git-crecord/git_crecord/main.py", line 183, in main
    version = importlib.metadata.version("git-crecord")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 889, in version
    return distribution(distribution_name).version
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for git-crecord