This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -693,15 +693,6 @@ private void Pull()
693
693
{
694
694
Repository
695
695
. Pull ( )
696
- // we need the error propagated from the original git command to handle things appropriately
697
- . Then ( success => {
698
- if ( ! success )
699
- {
700
- // if Pull fails we need to parse the output of the command, figure out
701
- // whether pull triggered a merge or a rebase, and abort the operation accordingly
702
- // (either git rebase --abort or git merge --abort)
703
- }
704
- } , runOptions : TaskRunOptions . OnAlways )
705
696
. FinallyInUI ( ( success , e ) => {
706
697
if ( success )
707
698
{
Original file line number Diff line number Diff line change @@ -107,9 +107,12 @@ private static void ContextMenu_Lock()
107
107
108
108
repository
109
109
. RequestLock ( repositoryPath )
110
- . ThenInUI ( _ =>
110
+ . FinallyInUI ( ( success , ex ) =>
111
111
{
112
- EntryPoint . ApplicationManager . TaskManager . Run ( EntryPoint . ApplicationManager . UsageTracker . IncrementAssetExplorerContextMenuLfsLock ) ;
112
+ if ( success )
113
+ {
114
+ EntryPoint . ApplicationManager . TaskManager . Run ( EntryPoint . ApplicationManager . UsageTracker . IncrementAssetExplorerContextMenuLfsLock ) ;
115
+ }
113
116
114
117
isBusy = false ;
115
118
Selection . activeGameObject = null ;
@@ -150,10 +153,12 @@ private static void ContextMenu_Unlock()
150
153
151
154
repository
152
155
. ReleaseLock ( repositoryPath , false )
153
- . ThenInUI ( _ =>
156
+ . FinallyInUI ( ( success , ex ) =>
154
157
{
155
- EntryPoint . ApplicationManager . TaskManager . Run ( EntryPoint . ApplicationManager . UsageTracker . IncrementAssetExplorerContextMenuLfsUnlock ) ;
156
-
158
+ if ( success )
159
+ {
160
+ EntryPoint . ApplicationManager . TaskManager . Run ( EntryPoint . ApplicationManager . UsageTracker . IncrementAssetExplorerContextMenuLfsUnlock ) ;
161
+ }
157
162
isBusy = false ;
158
163
Selection . activeGameObject = null ;
159
164
EditorApplication . RepaintProjectWindow ( ) ;
You can’t perform that action at this time.
0 commit comments