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

Determine branch in a smarter way #28

Merged
merged 1 commit into from
Mar 29, 2017
Merged

Conversation

tiewei
Copy link
Contributor

@tiewei tiewei commented Mar 28, 2017

The git module is determine if a version is a branch by regrex
check if it's a sha, that makes it confuse on tag vs branch.
This commit determines branch by check return code of
git show-ref --verify --quiet refs/heads/<version>, this will
always work because gilt always fetch and checkout, there must
have heads ref to a branch.

The git module is determine if a version is a branch by regrex
check if it's a sha, that makes it confuse on tag vs branch.
This commit determines branch by check return code of
`git show-ref --verify --quiet refs/heads/<version>`, this will
always work because gilt always fetch and checkout, there must
have heads ref to a branch.
@tiewei tiewei requested a review from retr0h March 28, 2017 16:28
@retr0h retr0h merged commit 57a03c8 into retr0h:master Mar 29, 2017
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.

2 participants