Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Does not honor system setting core.autocrlf on windows #215

Open
ccoenen opened this issue Sep 2, 2021 · 1 comment
Open

Does not honor system setting core.autocrlf on windows #215

ccoenen opened this issue Sep 2, 2021 · 1 comment

Comments

@ccoenen
Copy link

ccoenen commented Sep 2, 2021

The Situation

I am using classroom assistant on windows, and Git defaults to changing around white space from \n to \r\n - which I think is a bad idea but that part is not your fault.

I set my git up in a way to never change any files on its own via git config --system core.autocrlf=false. This way I'm getting exactly the same file contents across all systems.

The Problem

When cloning a bunch of repositories through the classroom assistant, this setting is not being used, This has two disadvantages:

  • (obviously) I don't get the exact files that were committed or that I expected
  • my IDE (that does honor the autocrlf setting now (correctly) notifies me that files have been changed.

Basically, right after cloning, my IDE looks like this:
grafik

The two repos that are not marked as changed (do not have the ember dot) are two that I cloned manually to verify that these are not identical.

What I would like instead

I would love it if classroom would either use the system's git settings (especially autocrlf). Or, if this is not possible, that there's a easily discoverable way to change github classroom's settings. I don't care if this is a GUI way to change it, or if I need to edit a config file or something like that. I just need to be able to find the correct way of configuring next time.

@ccoenen
Copy link
Author

ccoenen commented Sep 2, 2021

the setting is in effect for both --system and --global:
grafik

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant