"Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinstall

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
cedenburn
Posts: 11
Joined: Sun Jan 02, 2022 3:11 am
Has thanked: 11 times

"Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinstall

Post by cedenburn »

Deleted the programs as required. following the guide lines givwn cuda, minaconda 3 and Faceswap. Installed a a 4080 and getting this when I attempt to update. I have already done this with a 4070 TI without issue. It works but will not apparently update.

Thank you.

User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: "Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinsta

Post by torzdf »

Yeah, that part appears to have broken.

I'm currently working on rebasing the code to newer TF and Python, which will require a full re-install anyway, so that fix will be issued as part of that.

My word is final

User avatar
cedenburn
Posts: 11
Joined: Sun Jan 02, 2022 3:11 am
Has thanked: 11 times

Re: "Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinsta

Post by cedenburn »

Thank you for the update.

User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: "Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinsta

Post by torzdf »

Ok, this update has been pushed. You will need to get the latest installer from:
https://github.com/deepfakes/faceswap/releases

You can copy the .ini files from the .config folder if you want to keep your settings (then place them back in the .config folder of the new install)

I recommend running these steps prior to re-installing:
app.php/faqpage#f1r1

There may be bugs. It was a fairly hefty overhaul. Please start a new thread if you hit any.

Last edited by torzdf on Tue Jun 27, 2023 10:52 am, edited 1 time in total.

My word is final

User avatar
MaxHunter
Posts: 194
Joined: Thu May 26, 2022 6:02 am
Has thanked: 177 times
Been thanked: 13 times

Error updating Faceswap: Git is not installed or you are not running a cloned repo.

Post by MaxHunter »

Results After updating when trying to check for updates in the GUI:

Code: Select all

06/27/2023 15:09:11 INFO     Checking for updates...
06/27/2023 15:09:11 INFO     Git is not installed or you are not running a cloned repo. Unable to check for updates

Some tests updating manually:

Code: Select all

(base) C:\Users\e4978>conda activate faceswap
(faceswap) C:\Users\e4978>cd faceswap
(faceswap) C:\Users\e4978\faceswap>git pull

fatal: detected dubious ownership in repository at 'C:/Users/e4978/faceswap'
'C:/Users/e4978/faceswap' is owned by:
        'S-1-5-32-544'
but the current user is:
        'S-1-5-21-2881009722-1537911487-4253915951-1001'
To add an exception for this directory, call:

        git config --global --add safe.directory C:/Users/e4978/faceswap

(faceswap) C:\Users\e4978\faceswap>
 ! Message from: torzdf

Edited for additional information

Last edited by torzdf on Wed Jun 28, 2023 10:18 am, edited 2 times in total.
User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: Error updating Faceswap: Git is not installed or you are not running a cloned repo.

Post by torzdf »

I am going to test whether I can recreate, or whether this is user specific.

However, you can fix the issue yourself, as per the message output with:

Start > Anaconda prompt

Code: Select all

git config --global --add safe.directory C:/Users/e4978/faceswap

My word is final

User avatar
bba20
Posts: 11
Joined: Tue Sep 07, 2021 3:29 pm
Has thanked: 3 times
Been thanked: 2 times

Re: "Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinsta

Post by bba20 »

I have the same problem. I just reinstalled and says git not installed when I check for updates. Also the update broke my previous install so I had to reinstall.

User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: "Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinsta

Post by torzdf »

The ability to update is due to a change in the way Microsoft handles git installs and file ownership. I am working on a fix.

A full re-install is unavoidable for this release of Faceswap, due to moving to a more recent version of Python.

Last edited by torzdf on Thu Jun 29, 2023 9:47 pm, edited 1 time in total.

My word is final

User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: "Git is not installed or you are not running a cloned repo. Unable to check for updates" After deleting and reinsta

Post by torzdf »

This bug should be fixed...

To pull in the update you can do:

Start > Anaconda Prompt

Code: Select all

conda activate faceswap
cd faceswap
git pull

If you get an error about folder ownership, you can copy and paste the command it gives you to fix and then run git pull again

Last edited by torzdf on Fri Jun 30, 2023 7:27 am, edited 1 time in total.

My word is final

Locked