File tree Expand file tree Collapse file tree
GVFS/GVFS.FunctionalTests/Tests/GitCommands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,9 +85,12 @@ public void ResetMixedOnlyAddedThenCheckoutWithConflicts()
8585 this . ValidateGitCommand ( "reset --mixed HEAD~1" ) ;
8686
8787 // This will reset all the files except the files that were added
88- // and are untracked to make sure we error out with those using sparse-checkout
88+ // and are untracked to make sure we error out with those using sparse-checkout.
89+ // However, a sparse-checkout-enabled repo uses a different warning
90+ // message and leaves the repo in a different state than the control repo.
8991 this . ValidateGitCommand ( "checkout -f" ) ;
90- this . ValidateGitCommand ( "checkout " + GitRepoTests . ConflictSourceBranch ) ;
92+ this . RunGitCommand ( "checkout " + GitRepoTests . ConflictSourceBranch , ignoreErrors : true , checkStatus : false ) ;
93+ this . ValidateGitCommand ( "reset --hard" ) ;
9194 this . FilesShouldMatchCheckoutOfTargetBranch ( ) ;
9295 }
9396
You can’t perform that action at this time.
0 commit comments