Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Murmele committed Feb 13, 2024
1 parent 9740313 commit 617f682
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ else()
if(DEBUG_OUTPUT_REFRESH)
add_compile_definitions(DEBUG_OUTPUT_REFRESH)
endif()
add_compile_definitions(DEBUG_GIT_PATH)
endif()

find_package(
Expand Down
2 changes: 2 additions & 0 deletions src/git/Repository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ Repository::operator git_repository *() const { return d->repo; }

QDir Repository::dir(bool includeGitFolder) const {
QDir dir(git_repository_path(d->repo));
Debug("dir: " << dir);
if (!includeGitFolder) {
assert(dir.dirName() == ".git");
assert(dir.cdUp());
Debug("dir after cd Up: " << dir);
}
return dir;
}
Expand Down

0 comments on commit 617f682

Please sign in to comment.