-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Use NOTION_RELEASE environment value if defined as version and sh compat #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I think the new behavior is better than the old: If a .git
is present, I'd say I'd prefer the 'git not found' error over continuing with an empty version.
You're right, I'm swallowing the version it should go to the else condition too. |
The 'else' expects you to be in a directory that follows the github tag zip download naming conventions - if there is a .git directory present then it's unlikely the directory name follows that convention... |
5590e6f
to
9484376
Compare
if [ -e ".git" ]; then | ||
# Git: | ||
echo -n `git describe` | ||
if [[ -n $(git status -s) ]]; then | ||
if [ ! -z "$(echo -n `git status -s`)" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
9484376
to
0a265ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Use technique suggested in https://stackoverflow.com/q/7292584to check git can be executed
Edit: I've updated the PR, we talked in IRC and an environment value is a better fit