Skip to content

allow testing git repo outside of project root #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bewest
Copy link

@bewest bewest commented Jul 26, 2014

I want to use this module to help report version of my software running in M$'s Azure. Azure is a pretty nice environment, but the wwwroot (where the code was deployed and runs as the CWD), is actually a sibling directory to the git repo root, repository. This patch allows specifying an alternate git root directory to hep with cases like that.

bewest added 3 commits July 26, 2014 14:15
This module offers a nice way to get current hash of an npm project
that is currently in the git repo's root.

Some hosting providers run and serve npm projects from the repo root,
but in MS's Azure, the git `repository` and the `wwwroot` directories
are sibling repos.  During deployment phase, the files are deployed to
`wwwroot`.  This change makes it possible for an npm project running
in Azure (or any provider where the npm project is run or deployed in
a different location from the git repo root) to re-use this module to
easily grab the last hash.
This is a quick hack to test the ability to read a git repo that may
reside outside the current project's root.
@tblobaum
Copy link
Owner

@yetithefoot I havent worked on this module in a while. I'll try to find the time to look into this

@OmgImAlexis
Copy link

@tblobaum can you please look at this soon as this makes using the package in child dirs completely unusable.

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

Successfully merging this pull request may close these issues.

3 participants