Skip to content

Commit

Permalink
fetch pull request refs for telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Feb 23, 2025
1 parent 9e1843d commit f4b970d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rlottie-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ fn compile_rlottie() -> Vec<PathBuf> {
.arg(GIT_REPO)
.arg(&src_dir)
.current_dir(&out_dir));
// since telegram doesn't merge fixes we need to download pull requests
if VENDOR == "telegram" {
run(Command::new("git")
.arg("config")
.arg("--add")
.arg("remote.origin.fetch")
.arg("refs/pull/*/head:refs/remotes/origin/pull/*")
.current_dir(&src_dir));
run(Command::new("git").arg("fetch").current_dir(&src_dir));
}
}
run(Command::new("git")
.arg("checkout")
Expand Down

0 comments on commit f4b970d

Please sign in to comment.