]> source.dussan.org Git - jgit.git/commit
Set TagOpt.AUTO_FOLLOW when not cloning all branches 54/128954/2
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 8 Sep 2018 12:59:08 +0000 (14:59 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 14 Sep 2018 22:57:13 +0000 (00:57 +0200)
commit50deacdd57cd348554264fe26f3fd8177830071d
treec09cc1dff6377fb087ae332b77c048ca85dfc00d
parent54a502f6c6f416dc570f023ffb48f05efd3af3ff
Set TagOpt.AUTO_FOLLOW when not cloning all branches

Otherwise fetching all tags may pull in commits not on the
specified branches. Canonical git also does this.[1]

[1] https://github.com/git/git/blob/b160b6e69/builtin/clone.c#L1124

Bug: 538768
Change-Id: If0ac75fb9fae0c95d1a48b22954c54d4c3c09a47
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CloneCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java