aspiers / git-deps

git commit dependency analysis tool
GNU General Public License v2.0
297 stars 46 forks source link

fatal: -L invalid empty range #91

Open midenok opened 5 years ago

midenok commented 5 years ago

Reproduce

git deps HEAD^! -e 10.4 -c 0

Result

fatal: -L invalid empty range
Traceback (most recent call last):
  File "/usr/local/bin/git-deps", line 11, in <module>
    sys.exit(run())
  File "/usr/local/lib/python2.7/dist-packages/git_deps/cli.py", line 141, in run
    main(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/git_deps/cli.py", line 135, in main
    cli(options, args)
  File "/usr/local/lib/python2.7/dist-packages/git_deps/cli.py", line 119, in cli
    detector.find_dependencies(rev)
  File "/usr/local/lib/python2.7/dist-packages/git_deps/detector.py", line 122, in find_dependencies
    self.find_dependencies_with_parent(dependent, parent)
  File "/usr/local/lib/python2.7/dist-packages/git_deps/detector.py", line 147, in find_dependencies_with_parent
    self.blame_hunk(dependent, parent, path, hunk)
  File "/usr/local/lib/python2.7/dist-packages/git_deps/detector.py", line 172, in blame_hunk
    blame = subprocess.check_output(cmd, universal_newlines=True)
  File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['git', 'blame', '--porcelain', '-L', '620,+0', 'a92663ea5341053f2645a7fd5beba802b67f5372', '--', 'mysql-test/suite/versioning/r/alter.result']' returned non-zero exit status 128
Status: 1

What is -L? I don't see it in --help.

Please, don't show stack traces to user. It is quite user-unfriendly!

Additional info

$ git remote get-url origin
git@github.com:tempesta-tech/mariadb