Page 1 of 1

使用.build.sh clean报错

Posted: 2024-04-24 10:03
by zzzzzz
使用.build.sh clean报错

Code: Select all

root@8c26cb431aac:/home# ./build.sh clean
fatal: detected dubious ownership in repository at '/home'
To add an exception for this directory, call:

	git config --global --add safe.directory /home
[build.sh:error] Running main failed!
[build.sh:error] exit code 128 from line 1998:
[build.sh:info]     git submodule update --init --recursive

Re: 使用.build.sh clean报错

Posted: 2024-04-24 10:07
by Eng38
您好,尝试以下执行再进行清除:

Code: Select all

git config --global --add safe.directory /home

Re: 使用.build.sh clean报错

Posted: 2024-04-24 10:34
by zzzzzz
Eng38 wrote: 2024-04-24 10:07 您好,尝试以下执行再进行清除:

Code: Select all

git config --global --add safe.directory /home
变成这样了

Code: Select all

fatal: detected dubious ownership in repository at '/home/sysdrv/tools/board/ubuntu'
To add an exception for this directory, call:

	git config --global --add safe.directory /home/sysdrv/tools/board/ubuntu
fatal: Unable to find current revision in submodule path '../sysdrv/tools/board/ubuntu'
[build.sh:error] Running main failed!
[build.sh:error] exit code 1 from line 1998:
[build.sh:info]     git submodule update --init --recursive

Re: 使用.build.sh clean报错

Posted: 2024-04-24 12:04
by Eng38
执行这条命令:

Code: Select all

git submodule update --init --recursive