소스 검색

ReceivePack: Correct type of not provided object

If a tree was referenced but not provided in the pack, report it
as a missing tree and not as a missing blob.

Change-Id: Iab05705349cdf0d30cc3f8afc6698a8d2a941343
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
tags/v0.8.1
Shawn O. Pearce 14 년 전
부모
커밋
6029bb24ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java 파일 보기

@@ -827,7 +827,7 @@ public class ReceivePack {
throw new MissingObjectException(o, Constants.TYPE_BLOB);

if (ensureObjectsProvidedVisible && !providedObjects.contains(o))
throw new MissingObjectException(o, Constants.TYPE_BLOB);
throw new MissingObjectException(o, o.getType());
}
}


Loading…
취소
저장