Fix: Header field name was wrong

This commit is contained in:
Matthias Beyer 2016-07-14 20:42:39 +02:00
parent 295374e1bd
commit cdf90e427c

View file

@ -67,7 +67,7 @@ impl<'a> Ref<'a> {
}
fn read_reference(fle: &FileLockEntry<'a>) -> Result<PathBuf> {
match fle.get_header().read("ref.reference") {
match fle.get_header().read("ref.path") {
Ok(Some(Value::String(s))) => Ok(PathBuf::from(s)),
Ok(Some(_)) => Err(REK::HeaderTypeError.into_error()),
Ok(None) => Err(REK::HeaderFieldMissingError.into_error()),