Skip to content

Commit a41fef1

Browse files
authored
Fix sha checkouts (#67)
1 parent 00b5252 commit a41fef1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## 3.2.2 - 2025-07-02
11+
12+
### Fixed
13+
14+
- fix new line in URL for SHA checkouts. (#67)
15+
1016
## 3.2.1 - 2024-06-02
1117

1218
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "githubinator",
33
"displayName": "Githubinator",
44
"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.",
5-
"version": "3.2.1",
5+
"version": "3.2.2",
66
"publisher": "chdsbd",
77
"license": "SEE LICENSE IN LICENSE",
88
"icon": "images/logo256.png",

src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export async function head(
8888
string | undefined,
8989
]
9090
if (maybeHeadInfo == null) {
91-
return [maybeSha, null]
91+
return [maybeSha.trim(), null]
9292
}
9393
const branchName = maybeHeadInfo.trim().replace("refs/heads/", "")
9494
const sha = await getSHAForBranch(gitDir, branchName)

0 commit comments

Comments
 (0)