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

Error: git returned code 1 #3

Open
azelk opened this issue Sep 2, 2021 · 0 comments
Open

Error: git returned code 1 #3

azelk opened this issue Sep 2, 2021 · 0 comments

Comments

@azelk
Copy link

azelk commented Sep 2, 2021

I got this error when running fit-clang-format on my repo:

=> Testing base styles to see which seems to fit best.
Invalid value for -style
Traceback (most recent call last):
  File "/home/ann/fit-clang-format/fit-clang-format.py", line 447, in <module>
    ], strictly_better=False)
  File "/home/ann/fit-clang-format/fit-clang-format.py", line 200, in search
    score = cache.get_score(style)
  File "/home/ann/fit-clang-format/fit-clang-format.py", line 185, in get_score
    h = self.get_hash_for_style(style)
  File "/home/ann/fit-clang-format/fit-clang-format.py", line 182, in get_hash_for_style
    return self.hasher.get_canonical_string(style=style)
  File "/home/ann/fit-clang-format/fit-clang-format.py", line 163, in get_canonical_string
    base_style = self.get_base_style(style.base)
  File "/home/ann/fit-clang-format/fit-clang-format.py", line 156, in get_base_style
    util.run([context['clang-format'], '-dump-config', '-style', yaml.dump({'BasedOnStyle':base})])
  File "/home/ann/fit-clang-format/util.py", line 17, in run
    raise ValueError("git command returned code %s" % p.returncode)
ValueError: git command returned code 1

I edited line 156, removed -stlye argument and the error is now gone.

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