Fixed git submodule not getting commit

This commit is contained in:
coolGi
2023-08-15 14:44:10 +09:30
parent 44688afeb9
commit 4f0da248e3
+1 -1
View File
@@ -366,7 +366,7 @@ subprojects { p ->
try {
"git rev-parse --is-inside-work-tree".execute() // If git doesnt exist, or this isnt cloned from git, then this wont work
git_main_commit = 'git rev-parse --verify HEAD'.execute().text.trim()
git_core_commit = 'git ls-tree --object-only HEAD coreSubProjects'.execute().text.trim()
git_core_commit = 'git ls-tree --object-only HEAD ../coreSubProjects'.execute().text.trim() // TODO: is there a way to do this universally
git_main_branch = 'git symbolic-ref --short HEAD'.execute().text.trim()
} catch (Exception e) {
println "Git or Git project not found"