Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Version Code is never got updated #16

Open
LeiWangAndroid opened this issue Apr 5, 2017 · 2 comments
Open

Version Code is never got updated #16

LeiWangAndroid opened this issue Apr 5, 2017 · 2 comments

Comments

@LeiWangAndroid
Copy link

Hi, @passsy , I am applying the the git-versioner.gradle into my project, and I have problem to get versionCode updated, no matter how many commits has been updated, but they are still 277.

I checked my git version, it is git version 2.10.1, and the git path is located at: /usr/local/bin/git

Has anyone meet the same issue?

@passsy
Copy link
Owner

passsy commented Apr 5, 2017

Hard to tell what's wrong. can you copy the file to your project and use this one to debug the problem with some println?

@passsy
Copy link
Owner

passsy commented Apr 14, 2017

I just got an idea. when you commit something you're most likely not on the defaultBranch. The version only increases for commits on the default branch.
Commits on other branches are represented as 1083-dm4 where 1083 is the version of the defaultBranch and 4 the commits on the feature branch (which should increase in your case).

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

No branches or pull requests

2 participants