|
|
@@ -179,7 +179,8 @@ impl GitRepo {
|
|
|
/// path is the start of a rootwards search for the repository.
|
|
|
fn discover(path: PathBuf, flags: git2::RepositoryOpenFlags) -> Result<Self, PathBuf> {
|
|
|
info!("Opening Git repository for {:?} ({:?})", path, flags);
|
|
|
- let repo = match git2::Repository::open_ext(&path, flags, [] as [&OsStr; 0]) {
|
|
|
+ let unused: [&OsStr; 0] = [];
|
|
|
+ let repo = match git2::Repository::open_ext(&path, flags, &unused) {
|
|
|
Ok(r) => r,
|
|
|
Err(e) => {
|
|
|
error!("Error opening Git repository for {path:?}: {e:?}");
|