Skip to content

Commit b2d416a

Browse files
committed
test submodules ignore only in dev
1 parent 0f6b2c5 commit b2d416a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extended/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ shadowJar {
4646
// to init the submodule in case of new submodule or refresh it if exists, every time we compile
4747
task gitSubmoduleLoad {
4848
def execute = ["bash", "-c", "git submodule status apoc-core | grep -q \"^-\" && rm -r apoc-core && git submodule update --init apoc-core || git submodule update --remote apoc-core; " +
49-
"git update-index --assume-unchanged apoc-core"]
49+
"git config --file .gitmodules --get submodule.apoc-core.branch | grep -wq 'dev' && git update-index --assume-unchanged apoc-core || git update-index --assume-unchanged apoc-core"]
5050
.execute()
5151
execute.waitForProcessOutput(System.out, System.err)
5252
}

init.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
initscript {
22
def execute = ["bash", "-c", "rm -r apoc-core && git submodule update --init apoc-core; " +
3-
"git update-index --assume-unchanged apoc-core"]
3+
"git config --file .gitmodules --get submodule.apoc-core.branch | grep -wq 'dev' && git update-index --assume-unchanged apoc-core || git update-index --assume-unchanged apoc-core"]
44
.execute()
55
execute.waitForProcessOutput(System.out, System.err)
66
}

0 commit comments

Comments
 (0)