안녕하세요, 여러분.
GitLab 통합 기능을 사용하는 데 어려움을 겪고 있는데, 왜 오류가 발생하는지 모르겠습니다. 혹시 지금 제가 겪는 문제를 경험해 보신 분이 있을까요?
음… 프로젝트를 GitLab에 푸시하려고 했지만 할 수가 없습니다.
보호된 브랜치(master)에 푸시하려고 했다는 걸 알게 됐습니다. 그래서 다른 브랜치로 시도해 봤더니 제대로 작동했고, Git Bash를 통해 푸시할 수 있었습니다(브랜치를 만들고 커밋한 뒤 성공적으로 푸시했습니다). 문제는 다른 브랜치가 아니라 master 브랜치(보호됨)로 시도했다는 점이라고 생각했습니다. 하지만 Git Bash에서 했던 것과 똑같은 작업을 UiPath에서 해 보니, 처음 master에 푸시하려고 했을 때와 같은 오류가 발생합니다(오류 스크린샷과 설명은 아래에 첨부했습니다).
이 오류의 해결 방법을 찾을 수가 없습니다. VM 두 대에서 시도해 봤고, Git Bash와 UiPath에서도 시도해 봤습니다. Git Bash에서는 작동했지만 UiPath에서는 아무것도 되지 않았습니다. 로컬 프로젝트에서 새 브랜치를 만들고 Git에 푸시하는 것도 시도했지만, 모두 실패했습니다.
그 밖에 시도해 볼 만한 방법이 있을까요? 뭐든지요.
미리 감사드립니다. UiPath에서 발생하는 오류의 설명은 아래와 같습니다.
23.10.7+Branch.support-v23.10.Sha.02c40641e96e0fb2b02b5704bda2b5572df87464
구성된 원격 저장소로 푸시할 수 없습니다.
오류: LibGit2Sharp.LibGit2SharpException: 문자열을 와이드 형식으로 변환하지 못했습니다: 매개 변수가 올바르지 않습니다.
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2238 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 331
at UiPath.Studio.Plugin.Git.Services.PushService.<>c__DisplayClass2_0.b__0()
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2238 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable1 pushRefSpecs, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions) in C:\work\UiPathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 331
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.Desktop.Services.PushUiService.<>c__DisplayClass17_0.<PushAsync>b__3(IRepository r) 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.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

