diff --git a/lib/src/git.rs b/lib/src/git.rs index e4a1de0c0..c13c29c2b 100644 --- a/lib/src/git.rs +++ b/lib/src/git.rs @@ -75,11 +75,8 @@ pub fn import_refs( let id = CommitId(git_commit.id().as_bytes().to_vec()); let commit = store.get_commit(&id).unwrap(); mut_repo.add_head(&commit); - // For now, we consider all remotes "publishing". - // TODO: Make it configurable which remotes are publishing. - if git_ref.is_remote() { - mut_repo.add_public_head(&commit); - } + // TODO: Make it configurable which remotes are publishing and update public + // heads here. let full_name = git_ref.name().unwrap().to_string(); mut_repo.set_git_ref(full_name.clone(), RefTarget::Normal(id.clone())); let old_target = existing_git_refs.remove(&full_name); diff --git a/lib/tests/test_git.rs b/lib/tests/test_git.rs index 125682c19..704eb918f 100644 --- a/lib/tests/test_git.rs +++ b/lib/tests/test_git.rs @@ -80,7 +80,6 @@ fn test_import_refs() { commit_id(&commit5) }; assert_eq!(*view.heads(), expected_heads); - assert_eq!(*view.public_heads(), hashset!(commit_id(&commit1))); let expected_main_branch = BranchTarget { local_target: Some(RefTarget::Normal(commit_id(&commit2))),