Skip to content

Commit

Permalink
feat(repo): allow running from sub directories (#975)
Browse files Browse the repository at this point in the history
`git-cliff` now _discovers_ the Git repositories automatically even though when you run from sub directories.
  • Loading branch information
orhun authored Dec 4, 2024
1 parent 1297655 commit 98453b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff-core/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Repository {
/// Initializes (opens) the repository.
pub fn init(path: PathBuf) -> Result<Self> {
if path.exists() {
let inner = GitRepository::open(&path).or_else(|err| {
let inner = GitRepository::discover(&path).or_else(|err| {
let jujutsu_path =
path.join(".jj").join("repo").join("store").join("git");
if jujutsu_path.exists() {
Expand Down

0 comments on commit 98453b3

Please sign in to comment.