Uh oh!
There was an error while loading. Please reload this page.
warn the user if the upstream master branch is old - #129584
Conversation
rustbot
commented
Aug 25, 2024
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @albertlarsan68 (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
f0d2905 to
0c9bc45Compare0c9bc45 to
94e9c4cCompare
This comment has been minimized.
This comment has been minimized.
albertlarsan68
commented
Sep 4, 2024
Thanks for the PR! @bors r+ |
bors
commented
Sep 4, 2024
… r=albertlarsan68 warn the user if the upstream master branch is old fixesrust-lang#129528
…iaskrgr Rollup of 10 pull requests Successful merges: - rust-lang#101339 (enable -Zrandomize-layout in debug CI builds ) - rust-lang#120736 (rustdoc: add header map to the table of contents) - rust-lang#127021 (Add target support for RTEMS Arm) - rust-lang#128928 (CI: rfl: add more tools and steps) - rust-lang#129584 (warn the user if the upstream master branch is old) - rust-lang#129664 (Arbitrary self types v2: pointers feature gate.) - rust-lang#129752 (Make supertrait and implied predicates queries defaulted) - rust-lang#129918 (Update docs of `missing_abi` lint) - rust-lang#129919 (Stabilize `waker_getters`) - rust-lang#129925 (remove deprecated option `rust.split-debuginfo`) Failed merges: - rust-lang#129789 (rustdoc: use strategic boxing to shrink `clean::Item`) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 10 pull requests Successful merges: - rust-lang#101339 (enable -Zrandomize-layout in debug CI builds ) - rust-lang#120736 (rustdoc: add header map to the table of contents) - rust-lang#127021 (Add target support for RTEMS Arm) - rust-lang#128928 (CI: rfl: add more tools and steps) - rust-lang#129584 (warn the user if the upstream master branch is old) - rust-lang#129664 (Arbitrary self types v2: pointers feature gate.) - rust-lang#129752 (Make supertrait and implied predicates queries defaulted) - rust-lang#129918 (Update docs of `missing_abi` lint) - rust-lang#129919 (Stabilize `waker_getters`) - rust-lang#129925 (remove deprecated option `rust.split-debuginfo`) Failed merges: - rust-lang#129789 (rustdoc: use strategic boxing to shrink `clean::Item`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#129584 - lolbinarycat:old-upstream-warning, r=albertlarsan68 warn the user if the upstream master branch is old fixesrust-lang#129528
| use std::time::Duration; | ||
| const WARN_AFTER: Duration = Duration::from_secs(60 * 60 * 24 * 10); | ||
| let updated_master = updated_master_branch(config, Some(git_dir))?; | ||
| let branch_path = git_dir.join(".git/refs/remotes").join(&updated_master); |
There was a problem hiding this comment.
This logic is incorrect for git worktrees, where .git is not a folder -- it is a file containing the path to where the .git folder lies.
Please either fix this PR or revert it, currently it causes incorrect warnings for everyone using worktrees.
Revert "warn_old_master_branch" check See rust-lang#131296 (comment). Reverts rust-lang#130121 and rust-lang#129584. Fixesrust-lang#131296 and rust-lang#131324.
Rollup merge of rust-lang#131331 - onur-ozkan:131296, r=Kobzol Revert "warn_old_master_branch" check See rust-lang#131296 (comment). Reverts rust-lang#130121 and rust-lang#129584. Fixesrust-lang#131296 and rust-lang#131324.
fixes#129528