8000
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 93a9334 commit b17a4ccCopy full SHA for b17a4cc
src/lib.rs
@@ -959,7 +959,8 @@ 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 {
963
+ // TODO: why!?
964
raw::GIT_CONFIG_LEVEL_PROGRAMDATA => ConfigLevel::ProgramData,
965
raw::GIT_CONFIG_LEVEL_SYSTEM => ConfigLevel::System,
966
raw::GIT_CONFIG_LEVEL_XDG => ConfigLevel::XDG,
0 commit comments