mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
fix cdUp logic
This commit is contained in:
parent
ef6984cdae
commit
de7704a1b1
@ -154,8 +154,7 @@ Repository::operator git_repository *() const { return d->repo; }
|
||||
|
||||
QDir Repository::dir(bool includeGitFolder) const {
|
||||
QDir dir(git_repository_path(d->repo));
|
||||
if (!includeGitFolder) {
|
||||
assert(dir.dirName() == ".git");
|
||||
if (!includeGitFolder && dir.dirName() == ".git") {
|
||||
if (!dir.cdUp()) {
|
||||
assert(false); // must be done explicit, because in release build the
|
||||
// assert will not be executed, so assert(dir.cdUp()) does
|
||||
|
Loading…
Reference in New Issue
Block a user