PyGit2Header blames dirty version also if only non-added files available
Issue #10
resolved
git.exe --git-dir=... --work-tree=... status --porcelain
marks non-added files with "?? <filename>" at the beginning of the line.
added, but non-committed changes start with a "<space>M <filename>".
The itom version should only be marked to be non-clean, if there is at least one line starting with M.
Comments (3)
-
-
- changed status to resolved
Fixed Issue
#10on bitbucket.org. Separated dirtiy warning into unversioned and uncommited.→ <<cset f7a896a4f3ba>>
-
Fixed with issue with commit f7a896a4f3bafcc9baa7bda216f42488421dce04
- Log in to comment
Separated dirty-version report in itom about dialog into unversioned files and changed code.
Most dirty versions are caused by pyCache-files, which are not under version control (and should not be) in the directory. To avoid a dirty version due to unversioned files before creating an installer run git clean up.