Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Make Pantheon behave as a submodule #419

Merged
merged 2 commits into from
Dec 14, 2018
Merged

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Dec 13, 2018

PR description

version sniffing should be submodule aware, we need to use a .git as a file to point to our actual submodule data.

@@ -411,6 +411,10 @@ def calculateVersion() {

def getCheckedOutGitCommitHash() {
def gitFolder = "$projectDir/.git/"
if (!file(gitFolder).isDirectory()) {
// we may be in a submodule
gitFolder = file(gitFolder).text.substring(8).trim() + "/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding an explanatory comment here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@shemnon shemnon merged commit 4d1429c into PegaSysEng:master Dec 14, 2018
@shemnon shemnon deleted the build_tweaks branch December 14, 2018 04:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants