We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58191a commit 4ee88dfCopy full SHA for 4ee88df
1 file changed
app/src/lib/helpers/git-dir.ts
@@ -24,7 +24,11 @@ const getGitDirectoryBase = memoize((repository: Repository) => {
24
// eslint-disable-next-line no-sync
25
const contents = Fs.readFileSync(dotGit, 'utf8').trim()
26
const gitDirPath = contents.replace(/^gitdir: /, '')
27
- return Path.join(repository.path, gitDirPath)
+ if (Path.isAbsolute(gitDirPath)) {
28
+ return gitDirPath
29
+ } else {
30
+ return Path.join(repository.path, gitDirPath)
31
+ }
32
} catch (e) {
33
return dotGit
34
}
0 commit comments