Skip to content
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

git call to get current revision for RUBY_REVISION #531

Closed
wants to merge 1 commit into from
Closed

git call to get current revision for RUBY_REVISION #531

wants to merge 1 commit into from

Conversation

bivab
Copy link
Contributor

@bivab bivab commented Mar 19, 2013

make sure we call git from a path within the repository

@chrblabla
Copy link
Contributor

Yeah, that would fix #523 and #514 👍

RUBY_REVISION = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'],
cwd=os.path.dirname(os.path.abspath(__file__)),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate()[0].rstrip()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than use cwd, use the --git-dir= argument.

@alex alex closed this in ba9afd9 Mar 19, 2013
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