-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Ignore binary files from .gitattributes. #5377
Comments
Possibly related to this PR (maybe it's too eager, and also affecting pngs?); cc @Benehiko PTAL |
Can this issue be fixed as soon as possible? We can not fix this in our mirror branch as the issue is in the master and sync will override the changes. |
It's open source; contributions welcome as usual |
@Benehiko Thanks. This should fix binary files. What about this file which was modified: cli/command/container/testdata/utf8.env |
Still seeing cli/command/container/testdata/utf8.env file modified after git clone on linux machine. -bash-4.2$ git status
no changes added to commit (use "git add" and/or "git commit -a") |
@mbhadale what is your git config values for Seems like this file was maybe committed with ⋊> ~/G/cli on master ◦ file cli/command/container/testdata/utf8.env 09:30:18
cli/command/container/testdata/utf8.env: Unicode text, UTF-8 (with BOM) text, with CRLF line terminators
⋊> ~/G/cli on master ◦ git log -p -- file cli/command/container/testdata/utf8.env 09:30:25
commit 1630fc40f8f9f665a7292838b755520b1fefe307
Merge: 130222870 e5b7b7e87
Author: Daniel Nephin <[email protected]>
Date: Mon Apr 17 17:40:59 2017 -0400
Import docker/docker/cli
Signed-off-by: Daniel Nephin <[email protected]> |
Description
git clone docker-cli shows a list of modified files on the master branch on Linux machine. It seems line encodings are being modified during checkout. Please ignore the binary files and fix the encoding rule for .env file in .gitattributes files.
-bash-4.2$ git branch
-bash-4.2$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
-bash-4.2$ git remote show origin
Fetch URL: https://github.com/docker/cli.git
Push URL: https://github.com/docker/cli.git
HEAD branch: master
Remote branches:
18.06 tracked
18.09 tracked
19.03 tracked
20.10 tracked
23.0 tracked
24.0 tracked
25.0 tracked
26.0 tracked
26.1 tracked
27.x tracked
dependabot/github_actions/actions/upload-artifact-4 tracked
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to
Reproduce
git clone https://github.com/docker/cli.git on a Linux machine.
git status
This issue is observed as intermittent but the frequency of failure is high.
Expected behavior
No modified files on master branch after git clone.
docker version
-bash-4.2$ docker version Client: Version: 1.13.1 API version: 1.26 Package version: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker info
-bash-4.2$ docker info Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Additional Info
No response
The text was updated successfully, but these errors were encountered: