Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-14469

git log loads 100000s of old commits and eventually crashes sourcetree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Highest Highest
    • 3.4.19
    • 3.4.18
    • Git
    • None
    • Severity 1 - Critical

      Sometimes (randomly) sourcetree tries to load the WHOLE repository history, eventually crashing sourcetree or making the computer freeze (100% CPU for ages)

      This happens both when in "History" but also sometimes in "File Status" view, where I was initially viewing the current HEAD (not any old commits)
      In the log I see git log with like " --skip=25800" which goes until 100000s (probably  even more if it wouldn't crash)

      ```
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks log --skip=25600 --max-count=200 --branches=my-branch --full-history --date-order \"--format=%H\u001e%h\u001e%P\u001e%ai\u001e%cn <%ce>\u001e%an <%ae>\u001e%d\u001e%s\" --decorate=full --date=iso HEAD --",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00.2599985",     "CallerContext": "LogRevisions",     "Output": "redacted"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks rev-list --after 06.07.2024 HEAD --count",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00",     "CallerContext": "GetCommitCountSinceCommit",     "Output": "0\n"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks log --skip=25800 --max-count=200 --branches=my-branch --full-history --date-order \"--format=%H\u001e%h\u001e%P\u001e%ai\u001e%cn <%ce>\u001e%an <%ae>\u001e%d\u001e%s\" --decorate=full --date=iso HEAD --",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00.4840041",     "CallerContext": "LogRevisions",     "Output": "redacted"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks rev-list --after 06.07.2024 HEAD --count",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00",     "CallerContext": "GetCommitCountSinceCommit",     "Output": "0\n"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks log --skip=26000 --max-count=200 --branches=my-branch --full-history --date-order \"--format=%H\u001e%h\u001e%P\u001e%ai\u001e%cn <%ce>\u001e%an <%ae>\u001e%d\u001e%s\" --decorate=full --date=iso HEAD --",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00.2590017",     "CallerContext": "LogRevisions",     "Output": "redacted"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks rev-list --after 06.07.2024 HEAD --count",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00",     "CallerContext": "GetCommitCountSinceCommit",     "Output": "0\n"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks log --skip=26200 --max-count=200 --branches=my-branch --full-history --date-order \"--format=%H\u001e%h\u001e%P\u001e%ai\u001e%cn <%ce>\u001e%an <%ae>\u001e%d\u001e%s\" --decorate=full --date=iso HEAD --",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00.2010001",     "CallerContext": "LogRevisions",     "Output": "redacted"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks rev-list --after 06.07.2024 HEAD --count",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00",     "CallerContext": "GetCommitCountSinceCommit",     "Output": "0\n"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks log --skip=26400 --max-count=200 --branches=my-branch --full-history --date-order \"--format=%H\u001e%h\u001e%P\u001e%ai\u001e%cn <%ce>\u001e%an <%ae>\u001e%d\u001e%s\" --decorate=full --date=iso HEAD --",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00.3830012",     "CallerContext": "LogRevisions",     "Output": "redacted"   }

      ,
       

      {     "Command": "git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks rev-list --after 06.07.2024 HEAD --count",     "Directory": "C:\\some\\path",     "Status": "Finished",     "Duration": "00:00:00",     "CallerContext": "GetCommitCountSinceCommit",     "Output": "0\n"   }

      ,
      ```

            698877135425 Mukesh Kumar
            472a758444e5 bablex
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: