Merge pull request #533 from matthiasbeyer/libimagref/fix-header-field-name

Fix: Header field name was wrong
This commit is contained in:
Matthias Beyer 2016-07-15 11:21:28 +02:00 committed by GitHub
commit 6a77923058
1 changed files with 1 additions and 1 deletions

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()),