Skip to content

Commit 4afc61b

Browse files
Fixes invalid date error
1 parent 33f5d60 commit 4afc61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env/node/git/localGitProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5096,7 +5096,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
50965096
}
50975097

50985098
// Return only reachable stashes from the given ref
5099-
if (options?.reachableFrom && gitStash != null) {
5099+
if (options?.reachableFrom && gitStash?.stashes.size) {
51005100
const oldestStashDate = new Date(min(gitStash.stashes.values(), c => c.date.getTime())).toISOString();
51015101

51025102
const ancestors = await this.git.rev_list(repoPath, options.reachableFrom, { since: oldestStashDate });

0 commit comments

Comments
 (0)