I am trying to create an updater using gitpython. But, I am presented with an error when I try to clone into an existing directory.
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2032.0_x64__qbz5n2kfra8p0\lib\tkinter\__init__.py", line 1895, in __call__
return self.func(*args)
File "c:\Users\kiyer\Documents\GitHub\SmartRC App\SysBasic.py", line 66, in group
sysbasic.update.InstallClientUpdate(root, update)
File "c:\Users\kiyer\Documents\GitHub\SmartRC App\SysBasic.py", line 100, in InstallClientUpdate
client(window, update)
File "Sys\Installer.py", line 35, in client
Repo.clone_from("https://github.com/NoKodaAddictions/File-Database.git", path2)
File "C:\Users\kiyer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\git\repo\base.py", line 1032, in clone_from
return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
File "C:\Users\kiyer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\git\repo\base.py", line 973, in _clone
finalize_process(proc, stderr=stderr)
File "C:\Users\kiyer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\git\util.py", line 329, in finalize_process
proc.wait(**kwargs)
File "C:\Users\kiyer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\git\cmd.py", line 408, in wait
raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v https://github.com/NoKodaAddictions/File-Database.git C:\Users\kiyer\Documents\GitHub\SmartRC App\
stderr: 'fatal: destination path 'C:\Users\kiyer\Documents\GitHub\SmartRC App' already exists and is not an empty directory.
How do I use gitpython to clone a repository into a folder that isn't empty?
By the way, I am new to the gitpython module.