]> source.dussan.org Git - jgit.git/commit
Prevent alternates loop 48/55148/11
authorMartin Fick <mfick@codeaurora.org>
Tue, 24 Jan 2017 18:00:54 +0000 (11:00 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 14 Apr 2017 21:35:17 +0000 (23:35 +0200)
commite4714a2a5faa2d5cc8c9b129f96296dc2d6d26f8
treeb4cad4fdbb35c2eb1826e028ec33754da1758dbf
parentc80d8c59013804c5709bd873a2fec96f03dedbcc
Prevent alternates loop

When looping through alternates, prevent visiting the same object
directory twice. This could happen when the objects/info/alternates file
includes itself directly or indirectly via a another repo and its
alternates file.

Change-Id: I79bb3da099ebc3c262d2e6c61ed4578eb1aa3474
Signed-off-by: James Melvin <jmelvin@codeaurora.org>
Signed-off-by: Martin Fick <mfick@codeaurora.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/CachedObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java