Skip to content
Permalink
Browse files

Hide `link-to-file-in-file-history` where not needed (#2025)

Co-authored-by: Federico Brigante <github@bfred.it>
  • Loading branch information...
dotconnor and bfred-it committed May 12, 2019
1 parent 3cfdb31 commit 078f47d5885e04edbec57b320b21fc818cfe69f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/features/link-to-file-in-file-history.tsx
@@ -13,7 +13,7 @@ import {groupSiblings} from '../libs/group-buttons';
function init(): void | false {
// /user/repo/commits/master/readme.md -> 'readme.md'
// /user/repo/commits/master/ -> ''
const path = getRepoPath()!.replace(/^commits\/[^/]+\//, '');
const path = getRepoPath()!.replace(/^commits\/[^/]+\/?/, '');
if (!path) {
return false;
}

0 comments on commit 078f47d

Please sign in to comment.
You can’t perform that action at this time.