Git Clone: "The Checkout directory is not empty"

Hello All,

I am trying to clone my git repository so that I can push my projects to git. During the intial steps in cloning the git, I am struck with the error “The Checkout directory is not empty”. Tried by creating empty folders and restarting the machine several times but still no luck.



FYI, the folder is empty.

Hi @Sai_Kiran_Diyya

Could you check if there some hidden file enabling in Windows Explorer → View → More → Hidden Items

If there’s no file, try to clone to a folder outside Onedrive to isolate the issue. May it is a sync conflict

Cheers

I am getting the below error which related same and I don’t have hidden files.

13:07:14.9803 => [ERROR] [UiPath.Studio] [1] GIT: UiPath.Studio.Contracts.RecoverableException: Unable to clone from the given repository. Please make sure that the remote is available and try again.
—> LibGit2Sharp.LibGit2SharpException: failed to mark Git repository folder as hidden:
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 278
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Repository.cs:line 779
at UiPath.Studio.Plugin.Git.Wrappers.RepositoryInit.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at UiPath.Studio.Plugin.Git.Services.CloneService.<>c__DisplayClass3_0.b__0()
at UiPath.Studio.Plugin.Git.Desktop.Services.UiAuthenticationSession.Execute[T](ExecuteArgs1 args) at UiPath.Studio.Plugin.Git.Services.CloneService.CheckoutCore(String uri, String localFolder, IAuthenticationSession authenticationSession) --- End of inner exception stack trace --- at UiPath.Studio.Plugin.Git.Services.CloneService.CheckoutCore(String uri, String localFolder, IAuthenticationSession authenticationSession) at UiPath.Studio.Plugin.Git.Services.CloneService.<>c__DisplayClass2_0.<Checkout>b__0() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Git.Services.CloneService.Checkout(String repository, String localFolder, IAuthenticationSession authenticationSession) at UiPath.Studio.Plugin.Git.Desktop.Services.CheckOutUiService.CheckOut_ExecuteInternal() at UiPath.Studio.SourceControl.Shared.Desktop.Services.BaseCheckOutUiService1.CheckOut_Execute()
at UiPath.Studio.SourceControl.Shared.Desktop.Services.BaseCheckOutUiService1.<get_CheckOutCommand>b__11_0() at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088
13:08:06.8769 => [WARN] [UiPath.Studio] [40] Feed https://gallery.uipath.com/api/v3/index.json has been disabled. Reason: Forbidden