Sourcetree crashes while applying specific patches emitted by Rational Team Concert on a git repository.
The crash is always reproductible for problematic patches, but some other patches are applied without issues.
Attached a patch that causes the issue (reduced for simplicity and confidentiality issues, but still causes crash)
Stack trace from sourcetree.log:
2015-11-06T17:26:50: Fatal error:
System.ArgumentException: La seconde partie d'un chemin d'accès ne doit pas être un lecteur ou un nom UNC.
Parameter name: path2
2015-11-06T17:26:50: Stack trace:
at System.IO.Path.InternalCombine(String path1, String path2)
at System.IO.FileSystemEnumerableIterator`1.GetFullSearchString(String fullPath, String searchPattern)
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
at SourceTree.ViewModel.ApplyPatchDialogViewModel.AnalysePatchImpl(String patchText, Boolean& isCommit, Boolean& isExtendedDiff, Int32& stripLevel, String& basePath, String& msg) in C:\projects\bitbucket.org\atlassian\sourcetreewin-1.6\ViewModel\ApplyPatchDialogViewModel.cs:line 433
at SourceTree.ViewModel.ApplyPatchDialogViewModel.<>c_DisplayClass62_0.<AnalysePatch>b_0() in C:\projects\bitbucket.org\atlassian\sourcetreewin-1.6\ViewModel\ApplyPatchDialogViewModel.cs:line 251
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SourceTree.ViewModel.ApplyPatchDialogViewModel.<AnalysePatch>d__62.MoveNext() in C:\projects\bitbucket.org\atlassian\sourcetreewin-1.6\ViewModel\ApplyPatchDialogViewModel.cs:line 253
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
2015-11-06T17:26:59: Attempt to start ssh-agent.exe process [C:\Program Files (x86)\Git\bin\ssh-agent.exe]
- duplicates
-
SRCTREEWIN-1453 SourceTree crashes when trying to apply patch
-
- Closed
-