Skip to content

Commit 1f751fe

Browse files
authored
test (#463)
1 parent 86b4bbe commit 1f751fe

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/generate/validator.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,16 @@ function gitExists(json) {
122122
let cwd = workdir + repo;
123123
fsextra.ensureDirSync(cwd);
124124
let url = "https://github.com/" + repo + ".git";
125-
childProcess.execSync("git clone --depth 1 " + url + " " + cwd, {cwd: cwd});
125+
126+
// branch workarounds
127+
let branch = "";
128+
if (repo === "SAP-samples/cloud-abap-rap") {
129+
branch = "-b abap-environment ";
130+
} else if (repo === "SAP-samples/cloud-abap-rap") {
131+
branch = "-b ABAP-platform-cloud ";
132+
}
133+
134+
childProcess.execSync("git clone " + branch + "--depth 1 " + url + " " + cwd, {cwd: cwd});
126135
}
127136
}
128137

0 commit comments

Comments
 (0)