Code Monkey home page Code Monkey logo

Comments (14)

TomOne avatar TomOne commented on August 24, 2024

Sorry, I think it was my mistake. I forgot to clone and commit after adding the .gitattributs file. I just did a fresh clone and commited the EOL. Now it should be OK.

I think #35 (comment) is also related to this issue.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on August 24, 2024

Git config --global core.autocrlf false

That setting is required for choco repos (you can omit the global if you
prefer to set it on each repo).

Second setting is repo specific
git config core.filemode false

On Sunday, December 21, 2014, Gary Ewan Park [email protected]
wrote:

ok, what has changed with this repository...

I have just done a fresh git clone, and immediately all 358 files are
marked as changed:

[image: image]
https://cloud.githubusercontent.com/assets/1271146/5519753/1b532418-8959-11e4-90ad-947a43397264.png

I haven't changed anything in my git configuration, so something must have
changed in this repository, unless anyone can think of something else.

What do we need to add to the gitattributes file to solve this problem? I
can only assumed that the issue is to do with line endings, when shared
between *nix and windows.

@Redsandro https://github.com/Redsandro @TomOne
https://github.com/TomOne @ferventcoder
https://github.com/ferventcoder

โ€”
Reply to this email directly or view it on GitHub
#37.

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on August 24, 2024

In other words I prefer no magic.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on August 24, 2024

This is open to conversation but the solution needs to work against Windows and *nix at the same time in the same working set. To help you understand what I mean - in a VM and out of a VM using it as a shared folder.

If you have a good answer for that other than what I use above, I'm all ears.

from chocolatey-packages.

gep13 avatar gep13 commented on August 24, 2024

Git config --global core.autocrlf false

This I already had. Didn't have the second setting, so will keep that in mind.

from chocolatey-packages.

gep13 avatar gep13 commented on August 24, 2024

@TomOne

. Now it should be OK.

Nope, just did a re-clone. Although things are "better" I am still seeing immediately 277 changes.

from chocolatey-packages.

gep13 avatar gep13 commented on August 24, 2024

If I use:

Git config --global core.autocrlf true

Then is works fine. But that goes against what @ferventcoder is recommending. How should we proceed?

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on August 24, 2024

It's actually not a recommendation. ;)

On Sunday, December 21, 2014, Gary Ewan Park [email protected]
wrote:

If I use:

Git config --global core.autocrlf true

Then is works fine. But that goes against what @ferventcoder
https://github.com/ferventcoder is recommending. How should we proceed?

โ€”
Reply to this email directly or view it on GitHub
#37 (comment)
.

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

from chocolatey-packages.

gep13 avatar gep13 commented on August 24, 2024

It's actually not a recommendation. ;)

Ha ha! Ok, so what do we need to do to fix this. If I use core.autocrlf false and do a clone of the repository, there are immediately 277 files different. If I use core.autocrlf true things are good to go.

What needs to happen to the files in the repository to make everyone happy?

from chocolatey-packages.

TomOne avatar TomOne commented on August 24, 2024

@ferventcoder, ๐Ÿ‘ for git config --global core.autocrlf false, but we cannot expect that all users have this setting. Therefore itโ€™s better to set it in .gitattributes to disable it repo-wide for all users. This should do it: 6a805f3.

@gep13 after I made 6a805f3 I donโ€™t have the issue of changed files after a clone anymore. Can you confirm that?

from chocolatey-packages.

TomOne avatar TomOne commented on August 24, 2024

@ferventcoder

It's actually not a recommendation. ;)

But I would recommend it. I donโ€™t understand folks who recommend to set autocrlf to true. That setting could break files which need a specific EOL.

from chocolatey-packages.

ferventcoder avatar ferventcoder commented on August 24, 2024

Ha, what I meant was - with all chocolatey repos you can expect that they
are autocrlf false, so whether you set it globally or per repo, its easy to
know what setting you are expected to have if you come to chocolatey to
contribute. :)

On Sunday, December 21, 2014, TomOne [email protected] wrote:

@ferventcoder https://github.com/ferventcoder

It's actually not a recommendation. ;)

But I would recommend it. I donโ€™t understand folks who recommend to set
autocrlf to true. That setting could break files which need a specific
EOL.

โ€”
Reply to this email directly or view it on GitHub
#37 (comment)
.

Rob
"Be passionate in all you do"

http://devlicio.us/blogs/rob_reynolds
http://ferventcoder.com
http://twitter.com/ferventcoder

from chocolatey-packages.

Redsandro avatar Redsandro commented on August 24, 2024

This sounds just like #35 (comment)

-edit-

@TomOne already said the same. Sorry I'm late to the party. PS - gonna go on holiday. Be back next year. :)

from chocolatey-packages.

gep13 avatar gep13 commented on August 24, 2024

I have just tried again, and looks like it is now all good.

When I last tried, it was with this commit from @TomOne and things still weren't working, but now they are.

Thanks

from chocolatey-packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.