Skip to content

Commit 9a637ea

Browse files
ci: Only clone specific revision (#4848)
1 parent dccc0a3 commit 9a637ea

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

relay-prosperoconv/build.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ fn main() {
4040
"clone",
4141
"git@github.com:getsentry/tempest.git",
4242
&temp_dir_str,
43+
&format!("--revision={}", version),
44+
"--depth=1",
4345
])
4446
.status()
4547
.map(|x| x.success())
@@ -50,17 +52,13 @@ fn main() {
5052
"clone",
5153
"https://github.com/getsentry/tempest.git",
5254
&temp_dir_str,
55+
&format!("--revision={}", version),
56+
"--depth=1",
5357
])
5458
.status()
55-
.expect("Failed to clone tempest repository");
59+
.expect("Failed to clone tempest revision");
5660
}
5761

58-
Command::new("git")
59-
.args(["checkout", &version])
60-
.current_dir(temp_dir_path)
61-
.status()
62-
.expect("Failed to checkout branch");
63-
6462
CopyBuilder::new(temp_dir_path.join("crates/prosperoconv/src"), "src")
6563
.overwrite(true)
6664
.run()

0 commit comments

Comments
 (0)