Skip to content

genetare_website_2_data.py subprocess.CalledProcessError: Command '['git', 'update-index', '-q', '--ignore-submodules', '--refresh']' returned non-zero exit status 128. #724

@China-hanliyi

Description

@China-hanliyi

environment :Python 3.9 in openEuler-22.03-LTS/nototools-0-2.oe2203.noarch
I am trying to run generate_website_2_data.py in nototools, but he reports an error

fatal: 不是 git 仓库(或者任何父目录):.git
Traceback (most recent call last):
  File "/usr/bin/generate_website_2_data.py", line 1511, in <module>
    main()
  File "/usr/bin/generate_website_2_data.py", line 1500, in main
    repo_info = get_repo_info(args.no_repo_check)
  File "/usr/bin/generate_website_2_data.py", line 1433, in get_repo_info
    if not (skip_checks or tool_utils.git_is_clean(repo)):
  File "/usr/lib/python3.9/site-packages/nototools/tool_utils.py", line 313, in git_is_clean
    subprocess.check_call(
  File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'update-index', '-q', '--ignore-submodules', '--refresh']' returned non-zero exit status 128.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions