Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About using gitman with CR/LF line ending setting #319

Open
KaoNeo opened this issue Nov 12, 2023 · 2 comments
Open

About using gitman with CR/LF line ending setting #319

KaoNeo opened this issue Nov 12, 2023 · 2 comments
Labels

Comments

@KaoNeo
Copy link

KaoNeo commented Nov 12, 2023

Hi Jace

I use the gitman to download project
https://pypi.org/project/gitman/

And i have some question about autocrlf setting

With naive git command
we could use the config parma core.autocrlf=false to replace line ending
image
[Example]
git clone git@github.myproject.git --config core.autocrlf=false

Is there any way to set the line ending autocrlf (CR/LF) when using gitman?

@jacebrowning
Copy link
Owner

The params setting can be used to pass additional arguments to the git clone command: https://gitman.readthedocs.io/en/latest/setup/configuration/#gitman.models.source.Source--params

@sel-carlitos
Copy link

I work with Windows (to develop) and Linux (for production). But I don't pass anything in the params. I set this in Windows:

git config --global core.autocrlf 'input'
git config --global core.eol 'lf'

I don't set anything on Linux.

Have a look at the documentation on both settings core.autocrlf and core.eol at 8.1 Customizing Git - Git Configuration. I haven't had any issues so far.

By the way, thanks for gitman @jacebrowning !!! It helps me a lot!!!

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

No branches or pull requests

3 participants