|
|
@ -2524,9 +2524,7 @@ export class LocalGitProvider implements GitProvider, Disposable { |
|
|
|
async getLastFetchedTimestamp(repoPath: string): Promise<number | undefined> { |
|
|
|
try { |
|
|
|
const gitDir = await this.getGitDir(repoPath); |
|
|
|
const stats = await workspace.fs.stat( |
|
|
|
this.container.git.getAbsoluteUri(Uri.joinPath(gitDir.commonUri ?? gitDir.uri, 'FETCH_HEAD'), repoPath), |
|
|
|
); |
|
|
|
const stats = await workspace.fs.stat(Uri.joinPath(gitDir.uri, 'FETCH_HEAD')); |
|
|
|
// If the file is empty, assume the fetch failed, and don't update the timestamp
|
|
|
|
if (stats.size > 0) return stats.mtime; |
|
|
|
} catch {} |
|
|
|