Skip to content
Tcl Source Code History Of Ticket 3947fcf7
Login

History Of Ticket 3947fcf7

Artifacts Associated With Ticket 3947fcf7

  1. Ticket change [df1238485a] (rid 174272) by chrstphrchvz on 2019-08-22 14:56:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      I recently cloned the git mirror (<code>git clone https://github.com/tcltk/tcl.git</code>) on a Linux machine, and then tried to checkout a different branch. However this seems impossible at first, because it believes there are updated files, even after <code>git reset --hard HEAD</code>:
      
      <pre>
      win/buildall.vc.bat
      win/makefile.vc
      win/rules-ext.vc
      win/rules.vc
      win/targets.vc
      win/tcl.dsp
      win/tcl.dsw
      win/tcl.hpj.in
      </pre>
      
      I then tried combinations of commenting out the <code>* text eol=lf</code> and <code>*.… text eol=crlf</code> lines in .gitattributes, saw that the issue went away, undid my changes to .gitattribues, and the issue did not reappear. So I'm not certain what the cause was.
      
      I tried to reproduce this on a Mac, by pulling in recent changes on core-8-6-branch (I had not done so in a few weeks), and it too believes there are files that have been modified:
      
      <pre>
      libtommath/libtommath_VS2008.sln
      libtommath/libtommath_VS2008.vcproj
      win/makefile.vc
      win/rules.vc
      </pre>
      
      I do not have <code>git config --global core.autocrlf</code> set on either machine. I want to say this is caused by <code></code> in the .gitattributes file, but am not sure, and I don't have a recommendation on how to resolve this. I understand that using the GitHub mirror (or using git at all) is likely not the preferred way of checking out the Tcl/Tk code.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "chrstphrchvz"
    13. subsystem initialized to: "69. Other"
    14. title initialized to:
      Current .gitattributes settings might not allow switching branches
      
    15. type initialized to: "Bug"
  2. Ticket change [3db55b27be] (rid 174273) by jan.nijtmans on 2019-08-23 07:10:09:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Well, did you switch between branches in which one of them had the .gitattributes file and the other branch didn't?  Well, the ".gitattribues" file was added recently [35adcf578d0c9d69], because without it GIT checkouts some files with CRLF line-endings on Windows, that caused a test-failures in the Travis build on Windows.
      
      Eventually, all Tcl/Tk branches should have this .gitattributes files, then the problem should go away. It might also be a problem in the fossil &lt;-&gt; GIT conversion: Those files are committed in fossil using CRLF line-endings, this should not be modified by GIT.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Works For Me"
    6. status changed to: "Pending"
  3. Ticket change [7ff9d63af8] (rid 174274) by sebres on 2019-08-23 08:07:16:

    1. icomment:
      Well, I think it is a bit not correct Jan, so Christopher is right (and I'm with him).<br/>
      It could be sometimes really painful to work with this settings, especially if some prefered local git setting of user deviate.
      
      So I'm always preferring another default gitattributes (also use it for Tcl)...
      
      Here you'd find the "correct" settings in my opinion:
      
         [https://github.com/sebres/tcl/commit/80d9e368b183e2dc5ece510ab2f783e5fa2aabe3|sebres/tcl/commit/80d9e36]
      
      I had never issues with that.
      
      @Christopher you can also have your own local settings overriding the committed in fossil (git-mirror), see [https://git-scm.com/docs/gitattributes#_examples|gitattributes#_examples]
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [4f7767ce00] (rid 174277) by jan.nijtmans on 2019-08-23 08:32:23:

    1. icomment:
      Well, I'm not really a GIT expert, so if it works that's great!
      
      So, let's test it: [dfa6dd4b95601034]
      
      If Travis says OK (tomorrow), I'm OK too 😊︎.  Then I'll backport this to 8.5 and up.
      
      Thanks for your input!  Appreciated, as always!
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [07fea53572] (rid 174331) by sebres on 2019-08-26 13:24:38:

    1. icomment:
      Got the same issue using my git2fossil script (trying to rebase some older branch from my git to current 8.6): several files were continuously recognized as "modified" during the rebase process (on each revision) without possibility to revert/reset them (unless I applied mentioned fix).
      
      Could we rebase that fix (for >= 8.5), Jan?
      (Please :praying:)
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [75fe9633e1] (rid 174339) by jan.nijtmans on 2019-08-26 14:11:11:

    1. icomment:
      > Could we rebase that fix (for >= 8.5)
      
      Yes, since the Travis build was successfull.
      
      Again: Thanks for you help resolving this! Please, confirm that it's fixed now, then this ticket can be closed.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Accepted"
  7. Ticket change [0684ccc888] (rid 174340) by sebres on 2019-08-26 14:12:41:

    1. closedate changed to: "2458722.09214878"
    2. closer changed to: "sebres"
    3. icomment:
      Many thanks, Jan!
      
      @chrstphrchvz I'll close it now, Christopher. Please reopen if it still issued on your side.
      
    4. login: "sebres"
    5. mimetype: "text/plain"
    6. resolution changed to: "Works For Me"
    7. status changed to: "Closed"
  8. Ticket change [5b626b42b3] (rid 174341) by jan.nijtmans on 2019-08-26 14:19:12:

    1. closedate changed to: "2458722.09667442"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"