allow testing git repo outside of project root#8
Open
bewest wants to merge 3 commits intotblobaum:masterfrom
Open
allow testing git repo outside of project root#8bewest wants to merge 3 commits intotblobaum:masterfrom
bewest wants to merge 3 commits intotblobaum:masterfrom
Conversation
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.
Owner
|
@yetithefoot I havent worked on this module in a while. I'll try to find the time to look into this |
|
@tblobaum can you please look at this soon as this makes using the package in child dirs completely unusable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theCWD), 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.