base_checkout_replaces_tracked_changes(true);
}
@Bug(8122)
public void test_submodule_tags_not_fetched_into_parent() throws Exception {
w.git.clone_().url(localMirror()).repositoryName("origin").execute();
<BUG>w.git.checkout("origin/master", "master");
String tagsBefore = w.cmd("git tag");</BUG>
Set<String> tagNamesBefore = w.git.getTagNames(null);
for (String tag : tagNamesBefore) {
assertTrue(tag + " not in " + tagsBefore, tagsBefore.contains(tag));

base_checkout_replaces_tracked_changes(true);
}
@Bug(8122)
public void test_submodule_tags_not_fetched_into_parent() throws Exception {
w.git.clone_().url(localMirror()).repositoryName("origin").execute();
checkoutTimeout = 1 + random.nextInt(60 * 60 * 24);
w.git.checkout().ref("origin/master").branch("master").timeout(checkoutTimeout).execute();
String tagsBefore = w.cmd("git tag");
Set<String> tagNamesBefore = w.git.getTagNames(null);
for (String tag : tagNamesBefore) {
assertTrue(tag + " not in " + tagsBefore, tagsBefore.contains(tag));
