Giter Site home page Giter Site logo

Comments (11)

eikaramba avatar eikaramba commented on May 17, 2024

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.

 avatar commented on May 17, 2024

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.

 avatar commented on May 17, 2024

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.

eikaramba avatar eikaramba commented on May 17, 2024

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.

 avatar commented on May 17, 2024

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.

 avatar commented on May 17, 2024

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.

1951FDG avatar 1951FDG commented on May 17, 2024

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.

GladeDiviney avatar GladeDiviney commented on May 17, 2024

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.

1951FDG avatar 1951FDG commented on May 17, 2024

Hi, I'm on macOS 10.11.6, using Android Studio 3.3

from gradle-android-git-version.

1951FDG avatar 1951FDG commented on May 17, 2024

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.

 avatar commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.