We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b4bbe commit 1f751feCopy full SHA for 1f751fe
src/generate/validator.js
@@ -122,7 +122,16 @@ function gitExists(json) {
122
let cwd = workdir + repo;
123
fsextra.ensureDirSync(cwd);
124
let url = "https://github.com/" + repo + ".git";
125
- childProcess.execSync("git clone --depth 1 " + url + " " + cwd, {cwd: cwd});
+
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});
135
}
136
137
0 commit comments