Can anyone please help me to find out why this is happening. Every time I am trying to push, this error message appears.
@ashokkarale
24.4.0-beta.16568+Branch.release-v24.4.0.Sha.2580fa6cf8d62c2ce32ffb80535a02af198eb1da.2580fa6cf8d62c2ce32ffb80535a02af198eb1da
An exception was thrown while activating LibGit2Sharp.Repository.
Error: Autofac.Core.DependencyResolutionException: An exception was thrown while activating LibGit2Sharp.Repository.
—> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor ‘Void .ctor(System.String, LibGit2Sharp.RepositoryOptions)’ on type ‘Repository’.
—> LibGit2Sharp.RepositoryNotFoundException: Path ‘C:\Users\dip.das\Documents\UiPath\MgiRpaTest_’ doesn’t point at a valid Git repository or workdir.
at LibGit2Sharp.Repository…ctor(String path, RepositoryOptions options, RepositoryRequiredParameter requiredParameter) in C:\work\libgit2sharp\LibGit2Sharp\Repository.cs:line 35
at lambda_method828(Closure, Object)
at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
— End of inner exception stack trace —
at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action1 next)
at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) --- End of inner exception stack trace --- at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next)
at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action1 next)
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
at lambda_method2889(Closure, String, RepositoryOptions)
at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteInternal[TResult](Func2 action, Func1 repoFactory)
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Git.Services.GitSession.SafeExecuteAsync[TResult](Func1 action)
at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteAsync[TResult](Func2 action) at UiPath.Studio.Plugin.Git.Desktop.Services.AbortUiService.EnsureNotCurrentlyRebasing(IGitSession session) at UiPath.Studio.Plugin.Git.Desktop.Services.AbortUiService.EnsureNoOperationInProgress(IGitSession session) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushAsync(IGitSession session) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushCommandExecuteAsync() 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
This could be the actual issue. Check it.
LibGit2Sharp.RepositoryNotFoundException: Path ‘C:\Users\dip.das\Documents\UiPath\MgiRpaTest_’ doesn’t point at a valid Git repository or workdir.
@ashokkarale
see, it can pull from the repo, but can’t push.
the detailed error:
24.4.0-beta.16568+Branch.release-v24.4.0.Sha.2580fa6cf8d62c2ce32ffb80535a02af198eb1da.2580fa6cf8d62c2ce32ffb80535a02af198eb1da
Unable to push to configured remote.
Error: LibGit2Sharp.LibGit2SharpException: early EOF
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\work\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2244 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions) in C:\work\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at UiPath.Studio.Plugin.Git.Services.PushService.<>c__DisplayClass2_0.b__0()
at UiPath.Studio.Plugin.Git.Desktop.Services.UiAuthenticationSession.Execute[T](ExecuteArgs1 args) at UiPath.Studio.Plugin.Git.Services.PushService.Push(IRepository repository, RemoteModel remote, Boolean forcePush) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushInternal(IRepository repository, RemoteModel remote, Boolean forcePush) at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteInternal[TResult](Func2 action, Func1 repoFactory) at UiPath.Studio.Plugin.Git.Services.GitSession.<>c__DisplayClass18_01.b__1()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Git.Services.GitSession.SafeExecuteAsync[TResult](Func1 action)
at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteAsync[TResult](Func`2 action)
at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushAsync(IGitSession session), HResult -2146233088
Check if it’s authorization issue, if you are allowed to push the code to the branch you are trying to push. Many times such authorizations are in place.
Thanks,
Ashok ![]()
Okay. I will check. Thnaks.

