Hi all,
I’m trying to build Slicer on Win 11. However, when I tried to configure the Slicer repository by selecting “open bash here” for the Utility folder, following instruction here, I got an repo owner discrepancy error below:
$ ./SetupForDevelopment.sh
fatal: not in a git directory
fatal: not in a git directory
Checking basic user information...
Please enter your full name, such as 'John Doe': Chi Zhang
Setting name to 'Chi Zhang'
fatal: not in a git directory
Please enter your email address, such as 'john@email.com': chi.zhang@tamu.edu
Setting email address to 'chi.zhang@tamu.edu'
fatal: not in a git directory
Your commits will have the following author:
<>
Is the author name and email address above correct? [Y/n] Y
Setting up git hooks...
Pulling the hooks...
fatal: detected dubious ownership in repository at 'C:/slicer_build/slicer_source/.git/hooks'
'C:/slicer_build/slicer_source/.git/hooks' is owned by:
BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
AUTH/chi.zhang (S-1-5-21-1167378736-2199707310-2242153877-1186313)
To add an exception for this directory, call:
git config --global --add safe.directory C:/slicer_build/slicer_source/.git/hooks
Failure during hook setup
-------------------------
Downloading the hooks failed.
I wonder if it is related to the ownership of the computer in my institution. The IT did install an AdaminByRequest software to allow me temporarily run my computer under admin mode. Is there anyway to fix this problem? Thanks!
Chi