| 1529 | |
| 1530 | |
| 1531 | bool GitRepository::pathIsRoot() |
| 1532 | // ---------------------------------------------------------------------------- |
| 1533 | // Return true if path used to open repository is the top-level directory |
| 1534 | // ---------------------------------------------------------------------------- |
| 1535 | { |
| 1536 | #if defined(Q_OS_MACX) |
| 1537 | // Workaround bug#657 |
| 1538 | QCoreApplication::processEvents(); |
| 1539 | #endif |
| 1540 | return (QDir(path + "/.git").exists()); |
| 1541 | } |
| 1542 | |
| 1543 | |
| 1544 | void GitProcess::setEnvironment() |