Comments (11)
i saw that you don't do anything special here, that's why i'm confused myself of why that problem occurs.
from gradle-android-git-version.
That does seem odd. I don't know enough about your project to reproduce the issue, but perhaps an update to jgit might help (it's a few versions old now). I'll ping here when it's ready.
from gradle-android-git-version.
0.4.5 is published, please give it a try and see if the problem is fixed. If not, if you could point me at a dummy (or real) project that exhibits this behavior I can try to develop a workaround?
from gradle-android-git-version.
tried 0.4.5 no luck - like so often it seems it is a problem with our setup. i tried jgit for windows as described here: https://gist.github.com/oculushut/2413a93f311980f18910
then i was able to see that it detects some uncommited changes. git doesn't. it seems to be an issue with uppercase/lowercase in combination with windows maybe. I'm trying to resolve it now, but obviously this means it is not a problem of this library :)
from gradle-android-git-version.
I agree. https://www.midgetontoes.com/2014/10/17/maven-jgitflow-working-tree-has-uncommitted-changes/ might give you some clues. Thanks for letting us know about it anyway!
from gradle-android-git-version.
BTW: as a workaround you can disable "dirty" detection by customizing the format
. e.g.:
format "%tag%%-count%%-commit%%-branch%"
from gradle-android-git-version.
I also have this issue: repo
I applied the workaround, but I still don't know what causes the project to be marked as dirty. Is there some debugging or logging possible to determine what may be causing this?
from gradle-android-git-version.
We get the dirty report from jgit, so it may either be something on disk during the build, or it may be a problem with jgit. What OS is this on?
from gradle-android-git-version.
Hi, I'm on macOS 10.11.6, using Android Studio 3.3
from gradle-android-git-version.
Hi again, fixed it, I downloaded jgit.sh at https://www.eclipse.org/jgit/download/, and ran jgit.sh status and got:
Changes not staged for commit:
deleted: app/src/main/java/io/github/sdsstudios/nvidiagpumonitor/Controllers/BaseController.kt
Untracked files:
app/src/main/java/io/github/sdsstudios/nvidiagpumonitor/controllers/BaseController.kt
Notice Controllers
and controllers
, jgit seems to be case sensitive compared to the system git git version 2.19.1
I did the following and committed the changes to fix the dirty status:
git rm -r --cached .
git add .
from gradle-android-git-version.
Nice troubleshooting there! Thank you.
I wonder if git config core.ignorecase true
would have made a difference?
from gradle-android-git-version.
Related Issues (20)
- Remove deprecated items
- Replace commitHashLength with format extension
- Replace untrackedIsDirty with format extension
- Use --first-parent strategy
- Match git-describe commit hash
- Document git-describe format HOT 1
- Changelog HOT 1
- Describe output is empty? HOT 5
- Clean up testNearestTag test
- Recent update of jgit breaks compatibility with older Gradle versions HOT 1
- .. HOT 1
- [question] Support for incremental versionCode separately from versionName? HOT 6
- Different format per buildType? HOT 2
- Bare Repository has neither a working tree, nor an index via execution of git hooks HOT 12
- Include proper task descriptions
- Add direct access to components
- Nearest tag with optional tagPattern
- Unable to download jgit from jcenter
- It's keep saying untagged even though I already did
- Allow different format for non-tagged version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-android-git-version.