GitHub considers index.html a binary file #662

Closed
opened 2018-12-13 22:27:29 +00:00 by ghost · 4 comments
ghost commented 2018-12-13 22:27:29 +00:00 (Migrated from github.com)

screenshot from 2018-12-13 23-23-57

Adding .gitattributes fixed this on local git.

However: https://stackoverflow.com/a/24382933.

https://github.com/github/linguist

![screenshot from 2018-12-13 23-23-57](https://user-images.githubusercontent.com/4354706/49971264-2c343e80-ff2e-11e8-9bbd-d31d97e63053.png) Adding .gitattributes fixed this on local git. However: https://stackoverflow.com/a/24382933. https://github.com/github/linguist
ghost commented 2018-12-15 10:26:08 +00:00 (Migrated from github.com)
$ file -i index.html
index.html: application/octet-stream; charset=binary
```sh $ file -i index.html index.html: application/octet-stream; charset=binary ```
ghost commented 2018-12-15 10:36:28 +00:00 (Migrated from github.com)

First 10 bytes are the same for index.html and donate.html.

Yet:

$ file -i donate.html
donate.html: text/html; charset=us-ascii
First 10 bytes are the same for index.html and donate.html. Yet: ```sh $ file -i donate.html donate.html: text/html; charset=us-ascii ```
ghost commented 2018-12-15 10:51:11 +00:00 (Migrated from github.com)

screenshot from 2018-12-15 11-55-25

screenshot from 2018-12-15 11-50-53

Null bytes, then.

![screenshot from 2018-12-15 11-55-25](https://user-images.githubusercontent.com/4354706/50042148-6140ae00-0060-11e9-8c21-57c767f65ea3.png) ![screenshot from 2018-12-15 11-50-53](https://user-images.githubusercontent.com/4354706/50042113-b3350400-005f-11e9-804b-0f87113e795b.png) Null bytes, then.
ghost commented 2018-12-15 10:55:49 +00:00 (Migrated from github.com)

https://github.com/privacytoolsIO/privacytools.io/pull/651/files now has a diff.

https://github.com/privacytoolsIO/privacytools.io/pull/661/files doesn't, because it was based on the file with null bytes.

Resolved.

https://github.com/privacytoolsIO/privacytools.io/pull/651/files now has a diff. https://github.com/privacytoolsIO/privacytools.io/pull/661/files doesn't, because it was based on the file with null bytes. Resolved.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: privacyguides/privacytools.io#662
No description provided.