File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class GitUri extends (Uri as any as UriEx) {
7979 ref = commitOrRepoPath . sha ;
8080 }
8181
82- if ( isUncommittedStaged ( ref ) || ! isUncommitted ( ref ) ) {
82+ if ( ! isUncommitted ( ref ) || isUncommittedStaged ( ref ) ) {
8383 this . sha = ref ;
8484 }
8585
@@ -99,7 +99,7 @@ export class GitUri extends (Uri as any as UriEx) {
9999 ref = commitOrRepoPath . sha ;
100100 }
101101
102- if ( ref && ( isUncommittedStaged ( ref ) || ! isUncommitted ( ref ) ) ) {
102+ if ( ref && ( ! isUncommitted ( ref ) || isUncommittedStaged ( ref ) ) ) {
103103 this . sha = ref ;
104104 }
105105
@@ -164,7 +164,7 @@ export class GitUri extends (Uri as any as UriEx) {
164164 fragment : uri . fragment ,
165165 } ) ;
166166 this . repoPath = commitOrRepoPath . repoPath ;
167- if ( isUncommittedStaged ( commitOrRepoPath . sha ) || ! isUncommitted ( commitOrRepoPath . sha ) ) {
167+ if ( ! isUncommitted ( commitOrRepoPath . sha ) || isUncommittedStaged ( commitOrRepoPath . sha ) ) {
168168 this . sha = commitOrRepoPath . sha ;
169169 }
170170 }
You can’t perform that action at this time.
0 commit comments