Skip to content

Commit b17a4cc

Browse files
committed
WIP fix word size issue? Is this macOS-specific?
1 parent 93a9334 commit b17a4cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,8 @@ impl fmt::Display for ReferenceType {
959959
impl ConfigLevel {
960960
/// Converts a raw configuration level to a ConfigLevel
961961
pub fn from_raw(raw: raw::git_config_level_t) -> ConfigLevel {
962-
match raw {
962+
match raw >> 12 {
963+
// TODO: why!?
963964
raw::GIT_CONFIG_LEVEL_PROGRAMDATA => ConfigLevel::ProgramData,
964965
raw::GIT_CONFIG_LEVEL_SYSTEM => ConfigLevel::System,
965966
raw::GIT_CONFIG_LEVEL_XDG => ConfigLevel::XDG,

0 commit comments

Comments
 (0)