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