Ticket #16827: patch_src_qgit.cpp.diff

File patch_src_qgit.cpp.diff, 654 bytes (added by ocroquette (Olivier Croquette), 16 years ago)

New file 2/2

  • src/qgit.cpp

    diff -ru src/qgit.cpp.org src/qgit.cpp
    old new  
    1616        QCoreApplication::setOrganizationName(ORG_KEY);
    1717        QCoreApplication::setApplicationName(APP_KEY);
    1818
    19         /* On Windows msysgit exec directory is set up
    20          * during installation so to always find git.exe
    21          * also if not in PATH
    22          */
    2319        QSettings set;
     20        if ( set.value(GIT_DIR_KEY).toString().isEmpty() ) {
     21              // path to git is not set. Set it to our default.
     22              set.setValue(GIT_DIR_KEY, "/opt/local/bin");
     23        }
    2424        GIT_DIR = set.value(GIT_DIR_KEY).toString();
    2525
    2626        initMimePix();