We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60912c0 commit d9c94cfCopy full SHA for d9c94cf
asyncgit/src/sync/tags.rs
@@ -1,5 +1,8 @@
1
use super::{get_commits_info, CommitId, RepoPath};
2
-use crate::{error::Result, sync::repository::repo};
+use crate::{
3
+ error::Result,
4
+ sync::{gix_repo, repository::repo},
5
+};
6
use scopetime::scope_time;
7
use std::collections::{BTreeMap, HashMap, HashSet};
8
@@ -58,9 +61,7 @@ pub fn get_tags(repo_path: &RepoPath) -> Result<Tags> {
58
61
}
59
62
};
60
63
- let gix_repo: gix::Repository =
- gix::ThreadSafeRepository::discover_with_environment_overrides(repo_path.gitpath())
- .map(Into::into)?;
64
+ let gix_repo = gix_repo(repo_path)?;
65
let platform = gix_repo.references()?;
66
for mut reference in (platform.tags()?).flatten() {
67
let commit = reference.peel_to_commit();
0 commit comments