Skip to content

Commit

Permalink
fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephyrTFA committed Jul 12, 2024
1 parent b66f8d8 commit e1dd988
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/git.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use chrono::{TimeZone, Utc};
use gix::{open::Error as OpenError, Repository};
use std::{
fs,
path::{Path, PathBuf},
str::FromStr,
};
use std::{fs, path::Path};

thread_local! {
static REPOSITORY: Result<Repository, OpenError> = gix::open(".");
Expand All @@ -31,9 +27,9 @@ byond_fn!(fn rg_git_commit_date(rev, format) {
});

byond_fn!(fn rg_git_commit_date_head(format) {
let head_log_path = Path::new(".git")
.join("logs")
.join("HEAD");
let head_log_path = Path::new(".git")
.join("logs")
.join("HEAD");
let head_log = fs::metadata(&head_log_path).ok()?;
if !head_log.is_file() {
return None;
Expand Down

0 comments on commit e1dd988

Please sign in to comment.