We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93a9334 commit 575e518Copy full SHA for 575e518
src/lib.rs
@@ -959,7 +959,7 @@ impl fmt::Display for ReferenceType {
959
impl ConfigLevel {
960
/// Converts a raw configuration level to a ConfigLevel
961
pub fn from_raw(raw: raw::git_config_level_t) -> ConfigLevel {
962
- match raw {
+ match raw >> 12 { // TODO: why!?
963
raw::GIT_CONFIG_LEVEL_PROGRAMDATA => ConfigLevel::ProgramData,
964
raw::GIT_CONFIG_LEVEL_SYSTEM => ConfigLevel::System,
965
raw::GIT_CONFIG_LEVEL_XDG => ConfigLevel::XDG,
0 commit comments