Author Topic: git config --global --add safe.directory  (Read 1244 times)

mjdechirico

  • Community Member
  • Posts: 19
  • Hero Points: 0
git config --global --add safe.directory
« on: February 06, 2024, 03:52:37 PM »
Hi,

I keep getting the following message, what does it mean and how do I correct/remove it?

fatal: detected dubious ownership in repository at '//wsl.localhost/Ubuntu/home/jdechirico/git/Build_840/ZFPE'


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: git config --global --add safe.directory
« Reply #1 on: February 06, 2024, 04:59:55 PM »
What did you do before you got the message?

mjdechirico

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: git config --global --add safe.directory
« Reply #2 on: February 06, 2024, 07:30:49 PM »
VERSION CONTROL / REVERT

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: git config --global --add safe.directory
« Reply #3 on: February 07, 2024, 02:00:03 AM »
My guess is that you're picking up a different .gitconfig in SlickEdit than outside of it. I would check for a difference in the environment of console shell and when you run "set" from SlickEdit.

Are you using a Windows version of SlickEdit?

mjdechirico

  • Community Member
  • Posts: 19
  • Hero Points: 0
Re: git config --global --add safe.directory
« Reply #4 on: February 07, 2024, 03:02:07 PM »
Yes, I am using the windows version of SlickEdit

.gitconfig
[user]
   name = jdechirico
   email = jdechirico@iopentext.com
[filter "lfs"]
   clean = git-lfs clean -- %f
   smudge = git-lfs smudge -- %f
   process = git-lfs filter-process
   required = true
[safe]
   directory = %(prefix)///wsl.localhost/Ubuntu/home/jdechirico/git
« Last Edit: February 07, 2024, 03:19:11 PM by mjdechirico »