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 a439e69 commit 08455deCopy full SHA for 08455de
git-branchless-hook/src/lib.rs
@@ -458,9 +458,11 @@ fn hook_reference_transaction(effects: &Effects, transaction_state: &str) -> eyr
458
new_oid: _,
459
}| {
460
!should_ignore_ref_updates(ref_name)
461
- && !CategorizedReferenceName::new(ref_name)
462
- .friendly_describe()
463
- .starts_with("remote")
+ && match CategorizedReferenceName::new(ref_name) {
+ CategorizedReferenceName::RemoteBranch { .. } => false,
+ CategorizedReferenceName::OtherRef { .. } => false,
464
+ CategorizedReferenceName::LocalBranch { .. } => true,
465
+ }
466
},
467
)
468
.map(|parsed_line| fix_packed_reference_oid(&repo, &packed_references, parsed_line))
0 commit comments