Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Get information from outside of the project #18

Open
pythonissam opened this issue Apr 7, 2018 · 1 comment
Open

Get information from outside of the project #18

pythonissam opened this issue Apr 7, 2018 · 1 comment

Comments

@pythonissam
Copy link

Under the current implementation, .git must be in the project. I suggest that we give git command the visibility of other directories in addition to the current directory.

@jneira
Copy link

jneira commented Jan 2, 2020

Oh, afaik there is a mechanism to tell the lib where is the .git directory: putting a file named .git with the contents:

 gitdir: /path/to/custom/.git

see

splitAt 8 `fmap` readFile dotGit >>= \case
("gitdir: ", relDir) -> do
isRelDir <- doesDirectoryExist relDir
if isRelDir
then return relDir
else oops
_ -> oops

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants