Problem with push GitLab

Hi all
I’m having a problem with GitLab
When you try to push, an error occurs

Could you tell me what is the reason?
Maybe I’m doing something wrong

UiPath.Studio.Contracts.RecoverableException: pre-receive hook declined
   в UiPath.Studio.Plugin.Git.Services.Core.PushService.Push(IRepository repository, RemoteModel remote, Boolean forcePush)
   в UiPath.Studio.Plugin.Git.Services.UI.PushUiService.PushInternal(IRepository repository, RemoteModel remote, Boolean forcePush)
   в UiPath.Studio.Plugin.Git.Services.UI.PushUiService.<>c__DisplayClass18_0.<PushAsync>b__3(IRepository r)
   в UiPath.Studio.Plugin.Git.Services.Core.GitSession.ThreadSafeExecute[TResult](Func`2 action, Func`1 repoFactory)
   в UiPath.Studio.Plugin.Git.Services.Core.GitSession.<>c__DisplayClass14_0`1.<ExecuteAsync>b__0(CancellationToken _)
   в UiPath.Shared.ProducerConsumerPair.<>c__DisplayClass18_0`1.<StartNew>b__0()
   в System.Threading.Tasks.Task`1.InnerInvoke()
   в System.Threading.Tasks.Task.Execute()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в UiPath.Studio.Plugin.Git.Services.Core.GitSession.<ExecuteAsync>d__14`1.MoveNext()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   в UiPath.Studio.Plugin.Git.Services.UI.PushUiService.<PushAsync>d__18.MoveNext()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в UiPath.Studio.Plugin.Git.Services.UI.CommitUiService.<ExecuteCommit>d__24.MoveNext()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в UiPath.Studio.Plugin.Git.Services.UI.CommitUiService.<CommitAsync>d__20.MoveNext()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в UiPath.Studio.Plugin.Git.Services.UI.CommitUiService.<CommitCommandExecuteAsync>d__22.MoveNext()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в UiPath.Studio.Plugin.Git.Services.UI.CommitUiService.<<get_CommitCommand>b__19_0>d.MoveNext()

   в System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   в System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   в UiPath.Studio.Shared.MVVM.Commands.TaskCommand`3.<Execute>d__32.MoveNext()

   в System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088
1 Like

Need Solution for this issue

What does pre-receive Hook declined mean?

Your commits were rejected by the pre-receive hook of that repo (that’s a user-configurable script that is intended to analyze incoming commits and decide if they are good enough to be accepted into the repo).

Check this link:

Maintaner + developer role needs to be given for the project folder

I changed my team’s project role from Developer to Master. Then, it works fine