summaryrefslogtreecommitdiff
path: root/source/github-helpers/github-url.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-05-10 04:32:07 +0800
committerGravatar GitHub <noreply@github.com> 2023-05-10 04:32:07 +0800
commit747b87a6358c729e54148021d44c94e828603e01 (patch)
treedbe2d54ce393ce66bc9ada86655647ed2a586e00 /source/github-helpers/github-url.ts
parent12532fc4c149f5922fffba89ee2624bf3982e975 (diff)
downloadrefined-github-747b87a6358c729e54148021d44c94e828603e01.tar.gz
refined-github-747b87a6358c729e54148021d44c94e828603e01.tar.zst
refined-github-747b87a6358c729e54148021d44c94e828603e01.zip
Reliability fixes for `default-branch-button` (#6629)
Diffstat (limited to 'source/github-helpers/github-url.ts')
-rw-r--r--source/github-helpers/github-url.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/github-helpers/github-url.ts b/source/github-helpers/github-url.ts
index 2f592f50..e31b307c 100644
--- a/source/github-helpers/github-url.ts
+++ b/source/github-helpers/github-url.ts
@@ -1,4 +1,4 @@
-import {getCurrentCommittish} from './index.js';
+import getCurrentGitRef from './get-current-git-ref.js';
export default class GitHubURL {
user = '';
@@ -37,7 +37,7 @@ export default class GitHubURL {
const filePath = ambiguousReference.slice(1).join('/');
- const currentBranch = getCurrentCommittish();
+ const currentBranch = getCurrentGitRef();
const currentBranchSections = currentBranch?.split('/');
if (
!currentBranch // Current branch could not be determined (1/2)