[Android Software/Hacking General [Developers Only]] trunapushpa:
I am getting the following error while doing repo sync:

error: Cannot fetch LineageOS/android (Error: [('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/heads', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/tags', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs', "[Errno
13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs'")])
Traceback (most recent call last):
File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 622, in <module>
_Main(sys.argv[1:])
File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 596, in _Main
result = run()
File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 589, in <lambda>
run = lambda: repo._Run(name, gopts, argv) or 0
File "/mnt/d/lineageos/android/lineage/.repo/repo/main.py", line 266, in _Run
result = cmd.Execute(copts, cargs)
File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 912, in Execute
fetched = self._Fetch(to_fetch, opt, err_event)
File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 415, in _Fetch
self._FetchProjectList(**kwargs)
File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/mnt/d/lineageos/android/lineage/.repo/repo/subcmds/sync.py", line 346, in _FetchHelper
clone_filter=clone_filter)
File "/mnt/d/lineageos/android/lineage/.repo/repo/project.py", line 1492, in Sync_NetworkHalf
self._InitGitDir(force_sync=force_sync, quiet=quiet)
File "/mnt/d/lineageos/android/lineage/.repo/repo/project.py", line 2760, in _InitGitDir
copy_all=True)
File "/mnt/d/lineageos/android/lineage/.repo/repo/project.py", line 2992, in _ReferenceGitDir
shutil.copytree(src, dst)
File "/usr/lib/python3.6/shutil.py", line 365, in copytree
raise Error(errors)
shutil.Error: [('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/heads', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/heads'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs/tags', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs/tags'"), ('/mnt/d/lineageos/android/lineage/.repo/project-objects/LineageOS/android.git/refs', '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs', "[Errno 13] Permission denied: '/mnt/d/lineageos/android/lineage/.repo/projects/android.git/refs'")]

I am guessing it is because windows file system doesn't support long paths.

How can I fix this.