Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: df1238485aee0ec5566aa305ffc0dd6e5fb2708e6248857de97b1145f7d01b9d
Ticket: 3947fcf7cdb97c869e4e7a265589f8a876839646
Current .gitattributes settings might not allow switching branches
User & Date: chrstphrchvz on 2019-08-22 14:56:38
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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 changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "chrstphrchvz"
  13. subsystem changed to: "69. Other"
  14. title changed to:
    Current .gitattributes settings might not allow switching branches
    
  15. type changed to: "Bug"