Browse Source

Fixes regression causing copy message to clipboard to fail

main
Eric Amodio 6 years ago
parent
commit
c1c8c7568e
2 changed files with 8 additions and 1 deletions
  1. +6
    -0
      CHANGELOG.md
  2. +2
    -1
      src/git/gitUri.ts

+ 6
- 0
CHANGELOG.md View File

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes an issue where the _Copy Commit Message to Clipboard_ command fails (and probably others too) — a regression caused by the attempted fix for [#568](https://github.com/eamodio/vscode-gitlens/issues/565)
## [9.0.2] - 2018-12-05
### Added

+ 2
- 1
src/git/gitUri.ts View File

@ -328,8 +328,9 @@ export class GitUri extends ((Uri as any) as UriEx) {
if (repoPath === undefined) return normalizedFileName;
const normalizedRepoPath = Strings.normalizePath(repoPath);
if (normalizedFileName == null || normalizedFileName.length === 0) return normalizedRepoPath;
if (!normalizedFileName || normalizedFileName.startsWith(normalizedRepoPath)) return normalizedFileName;
if (normalizedFileName.startsWith(normalizedRepoPath)) return normalizedFileName;
return Strings.normalizePath(paths.join(normalizedRepoPath, normalizedFileName));
}

Loading…
Cancel
Save