diff --git a/CHANGELOG.md b/CHANGELOG.md index 6515f71..6f298a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## 3.2.2 - 2025-07-02 + +### Fixed + +- fix new line in URL for SHA checkouts. (#67) + ## 3.2.1 - 2024-06-02 ### Fixed diff --git a/package.json b/package.json index 8dbc251..7783d95 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "githubinator", "displayName": "Githubinator", "description": "Quickly open files on Github and other providers. View blame information, copy permalinks and more. See the \"commands\" section of the README for more details.", - "version": "3.2.1", + "version": "3.2.2", "publisher": "chdsbd", "license": "SEE LICENSE IN LICENSE", "icon": "images/logo256.png", diff --git a/src/git.ts b/src/git.ts index 66a073f..4df9866 100644 --- a/src/git.ts +++ b/src/git.ts @@ -88,7 +88,7 @@ export async function head( string | undefined, ] if (maybeHeadInfo == null) { - return [maybeSha, null] + return [maybeSha.trim(), null] } const branchName = maybeHeadInfo.trim().replace("refs/heads/", "") const sha = await getSHAForBranch(gitDir, branchName)