Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Completely clean Git Qt sources
Forum Updated to NodeBB v4.3 + New Features

Completely clean Git Qt sources

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PS76
    wrote on 15 May 2019, 09:14 last edited by
    #1

    Hello,

    Is there a way to completely clean the Qt sources so that they are exactly the same as directly after cloning them from the Qt Git repository?

    I tried "git submodule foreach --recursive "git clean -dfx"" but there are still some new files there (generates by Visual Studio nmake/jom).

    Regards,

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 May 2019, 09:28 last edited by
      #2

      Hi,

      IIRC, it's git clean -dffx. Using f twice, git will remove everything that is not part of the original repository including folder containing .git subdirectories or file.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • P Offline
        P Offline
        PS76
        wrote on 15 May 2019, 15:27 last edited by
        #3

        Although this command seems to clean all files I still have to re-clone (or extract from a clean backup) the git archive to get a clean environment for configure. I have no clue why (even a system reboot does not fix the problem).

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 May 2019, 19:53 last edited by
          #4

          Are you doing in sources builds ? If so, you should change to out of sources builds. This will allow you to keep the sources clean and also start from scratch more easily.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PS76
            wrote on 16 May 2019, 04:19 last edited by
            #5

            No, I do out of the source tree builds. The following produces problems:

            1.) configure -xplatform winrt-arm-msvc2015
            2.) Clean local repository
            3.) Open new command prompt
            4.) configure -xplatform winrt-x86-msvc2015

            Configure in Step 4 fails.

            This works:
            1.) configure -xplatform winrt-arm-msvc2015
            2.) Delete local repository and clone again.
            3.) Open new command prompt
            4.) configure -xplatform winrt-x86-msvc2015

            A 1 Reply Last reply 16 May 2019, 05:03
            0
            • P PS76
              16 May 2019, 04:19

              No, I do out of the source tree builds. The following produces problems:

              1.) configure -xplatform winrt-arm-msvc2015
              2.) Clean local repository
              3.) Open new command prompt
              4.) configure -xplatform winrt-x86-msvc2015

              Configure in Step 4 fails.

              This works:
              1.) configure -xplatform winrt-arm-msvc2015
              2.) Delete local repository and clone again.
              3.) Open new command prompt
              4.) configure -xplatform winrt-x86-msvc2015

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 16 May 2019, 05:03 last edited by
              #6

              @PS76 said in Completely clean Git Qt sources:

              2.) Clean local repository

              You should do a git status afterwards in the toplevel git directory. If any of the subdirectory shows modified or dirty, you can repeat it there.

              This should really show what stays in these directories after cleaning.

              I think your problem is, that the call:

              "git submodule foreach --recursive "git clean -dfx""

              should be followed by a git clean -dfx for the top-level directory.

              Regards.

              Qt has to stay free or it will die.

              P 1 Reply Last reply 16 May 2019, 17:54
              2
              • A aha_1980
                16 May 2019, 05:03

                @PS76 said in Completely clean Git Qt sources:

                2.) Clean local repository

                You should do a git status afterwards in the toplevel git directory. If any of the subdirectory shows modified or dirty, you can repeat it there.

                This should really show what stays in these directories after cleaning.

                I think your problem is, that the call:

                "git submodule foreach --recursive "git clean -dfx""

                should be followed by a git clean -dfx for the top-level directory.

                Regards.

                P Offline
                P Offline
                PS76
                wrote on 16 May 2019, 17:54 last edited by
                #7

                @aha_1980 Thanks - the second git clean step did the trick.

                1 Reply Last reply
                1

                6/7

                16 May 2019, 05:03

                • Login

                • Login or register to search.
                6 out of 7
                • First post
                  6/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved