#28 git repo-config is deprecated in favor of git config

open
nobody
None
5
2014-08-19
2011-05-21
zebul666
No

with latest git, one have the WARNING:
git repo-config is deprecated in favor of git config

every time we open qgit

Discussion

  • Dirk Wallenstein

    This patch fixes it (don't have a attach-file button somehow):

    Use 'git config' instead of the deprecated 'git repo-config'"

    --- src/git.cpp 2011-11-28 18:19:18.303878315 +0100
    +++ src/git.cpp 2010-11-28 18:21:56.948876532 +0100
    @@ -425,7 +425,7 @@ void Git::setTextCodec(QTextCodec* tc) {
    if (name == "Big5-HKSCS")
    name = "Big5";

    - run("git repo-config i18n.commitencoding " + name);
    + run("git config i18n.commitencoding " + name);
    }

    QTextCodec* Git::getTextCodec(bool* isGitArchive) {
    @@ -435,7 +435,7 @@ QTextCodec* Git::getTextCodec(bool* isGi
    return NULL;

    QString runOutput;
    - if (!run("git repo-config --get i18n.commitencoding", &runOutput))
    + if (!run("git config --get i18n.commitencoding", &runOutput))
    return NULL;

    if (runOutput.isEmpty()) // git docs says default is utf-8

     
  • Dirk Wallenstein

    Ups, there is a patch already in the Patches tracker. Forget about this one here.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks