Fix FileTreeIterator.idSubmodule(Entry)
FileTreeIterator was calling by mistake WorkingTreeIterator.idSubmodule(Entry). Instead it should always compute idSubmodule on its own. Change-Id: Id1b988aded06939b1d7edd2671e34bf756896c0e
This commit is contained in:
parent
85d09a9ec7
commit
5b55498b16
|
@ -87,7 +87,7 @@ public void setUp() throws Exception {
|
||||||
.call();
|
.call();
|
||||||
|
|
||||||
submodule_db = (FileRepository) Git.wrap(db).submoduleAdd()
|
submodule_db = (FileRepository) Git.wrap(db).submoduleAdd()
|
||||||
.setPath("submodule")
|
.setPath("modules/submodule")
|
||||||
.setURI(submoduleStandalone.getDirectory().toURI().toString())
|
.setURI(submoduleStandalone.getDirectory().toURI().toString())
|
||||||
.call();
|
.call();
|
||||||
submoduleStandalone.close();
|
submoduleStandalone.close();
|
||||||
|
|
|
@ -67,8 +67,8 @@
|
||||||
*/
|
*/
|
||||||
public class FileTreeIterator extends WorkingTreeIterator {
|
public class FileTreeIterator extends WorkingTreeIterator {
|
||||||
/**
|
/**
|
||||||
* the starting directory. This directory should correspond to the root of
|
* the starting directory of this Iterator. All entries are located directly
|
||||||
* the repository.
|
* in this directory.
|
||||||
*/
|
*/
|
||||||
protected final File directory;
|
protected final File directory;
|
||||||
|
|
||||||
|
@ -238,8 +238,6 @@ public File getEntryFile() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected byte[] idSubmodule(final Entry e) {
|
protected byte[] idSubmodule(final Entry e) {
|
||||||
if (repository == null)
|
return idSubmodule(getDirectory(), e);
|
||||||
return idSubmodule(getDirectory(), e);
|
|
||||||
return super.idSubmodule(e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue