Force using a relative path in .git files to stabilize package fingerprints#105
Force using a relative path in .git files to stabilize package fingerprints#105yudai wants to merge 1 commit intocloudfoundry:masterfrom
Conversation
|
-1. |
|
Thank you for the comment. |
|
Closing because this commit does not support git 1.7.0.4 (lucid default), which did not support separated .git directories. |
Up to Git version 1.7.9, the value of
gitdirin the .git file of submodules is an absolute path. This makes the fingerprint of some packages unstable. The fingerprint of packages which have submodules in theirsrcfiles(e.g. dea_next, daylimit in cf-release) depend on the location where the release repository is cloned.bosh create releasegenerates a new version of the packages even when the source files of them have no changes.This commit adds a method to rewrite the value of
gitdirfrom a absolute path to a relative path before calculating fingerprints. Since Git 1.7.10 uses relative paths forgitdirby default, this change is compatible with the newer Git versions.This PR is just a proposal and I think we can choose other way to stabilize fingerprints, such as simply ignoring .git files.