From 45572a61b57a2d1493100d489e8555e7397b05f5 Mon Sep 17 00:00:00 2001 From: Christopher Dignam Date: Wed, 2 Jul 2025 19:40:49 -0400 Subject: [PATCH 1/3] fix sha checkouts --- CHANGELOG.md | 6 ++++++ src/git.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6515f71..94a2118 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 sha for SHA checkouts. + ## 3.2.1 - 2024-06-02 ### Fixed 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) From ccff9693a5d7f124eacabe3e91723a8c26dd1b13 Mon Sep 17 00:00:00 2001 From: Christopher Dignam Date: Wed, 2 Jul 2025 19:41:04 -0400 Subject: [PATCH 2/3] version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 92f2d0e04a0883168b014702f2ee07a5bc201bd4 Mon Sep 17 00:00:00 2001 From: Christopher Dignam Date: Wed, 2 Jul 2025 19:42:54 -0400 Subject: [PATCH 3/3] . --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94a2118..6f298a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- fix new line in sha for SHA checkouts. +- fix new line in URL for SHA checkouts. (#67) ## 3.2.1 - 2024-06-02