summaryrefslogtreecommitdiff
path: root/source/features/fork-source-link-same-view.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/fork-source-link-same-view.tsx')
-rw-r--r--source/features/fork-source-link-same-view.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/fork-source-link-same-view.tsx b/source/features/fork-source-link-same-view.tsx
index bfe4de90..fd0de58b 100644
--- a/source/features/fork-source-link-same-view.tsx
+++ b/source/features/fork-source-link-same-view.tsx
@@ -4,7 +4,7 @@ import * as pageDetect from 'github-url-detection';
import features from '../feature-manager.js';
import GitHubURL from '../github-helpers/github-url.js';
import doesFileExist from '../github-helpers/does-file-exist.js';
-import getDefaultBranch from '../github-helpers/get-default-branch.js';
+import {getDefaultBranchOfRepo} from '../github-helpers/get-default-branch.js';
import {getRepo, getForkedRepo} from '../github-helpers/index.js';
const isFilePath = (): boolean =>
@@ -34,7 +34,7 @@ async function getEquivalentURL(): Promise<string> {
});
if (isFilePath()) {
- sameViewUrl.branch = await getDefaultBranch(forkedRepository);
+ sameViewUrl.branch = await getDefaultBranchOfRepo(forkedRepository);
if (!await doesFileExist(sameViewUrl)) {
return defaultUrl;
}