You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Victor Sosa <so...@gmail.com> on 2015/01/23 21:57:04 UTC
Odd EOL in files in newly cloned repo
Hello community
I'm cloning a repository in Apache Cordova (cordova-docs) and as soon as I
check out the repo in my laptop, I check the status of the repo with *git
status*. Oddly, I get some image files as modified (the ones under
cordova-docs/templates folder).
Looking around in internet I found this thread in SO where a person
recommends to modify the .gitattributes file in the repository to change
the EOL of the files to LF. I need to say here that I'm using Ubuntu 12.04.
http://stackoverflow.com/questions/12205846/git-shows-random-files-as-modified-after-clone-cant-discard-them
My question, has someone else have had this problem before? How you fixed
the problem? is it recommended to commit the changes in .gitattributes?
Appreciate your input to solve this problem
--
Victor Adrian Sosa Herrera
IBM Software Engineer
Guadalajara, Jalisco
Re: Odd EOL in files in newly cloned repo
Posted by Andrew Grieve <ag...@chromium.org>.
Likely related to this file being added recently:
https://github.com/apache/cordova-docs/blob/master/.gitattributes
On Fri, Jan 23, 2015 at 5:15 PM, Jesse <pu...@gmail.com> wrote:
> Odd. There appears to be an issue with how these files were checked in.
> Normally only text files have this issue, which is corrected by
> setting: git config core.autocrlf true
> on windows machines.
>
> We may need to check in the corrected version.
>
>
>
> @purplecabbage
> risingj.com
>
> On Fri, Jan 23, 2015 at 12:57 PM, Victor Sosa <so...@gmail.com>
> wrote:
>
> > Hello community
> >
> > I'm cloning a repository in Apache Cordova (cordova-docs) and as soon as
> I
> > check out the repo in my laptop, I check the status of the repo with *git
> > status*. Oddly, I get some image files as modified (the ones under
> > cordova-docs/templates folder).
> >
> > Looking around in internet I found this thread in SO where a person
> > recommends to modify the .gitattributes file in the repository to change
> > the EOL of the files to LF. I need to say here that I'm using Ubuntu
> 12.04.
> >
> >
> >
> http://stackoverflow.com/questions/12205846/git-shows-random-files-as-modified-after-clone-cant-discard-them
> >
> > My question, has someone else have had this problem before? How you fixed
> > the problem? is it recommended to commit the changes in .gitattributes?
> >
> > Appreciate your input to solve this problem
> >
> > --
> > Victor Adrian Sosa Herrera
> > IBM Software Engineer
> > Guadalajara, Jalisco
> >
>
Re: Odd EOL in files in newly cloned repo
Posted by Jesse <pu...@gmail.com>.
Odd. There appears to be an issue with how these files were checked in.
Normally only text files have this issue, which is corrected by
setting: git config core.autocrlf true
on windows machines.
We may need to check in the corrected version.
@purplecabbage
risingj.com
On Fri, Jan 23, 2015 at 12:57 PM, Victor Sosa <so...@gmail.com>
wrote:
> Hello community
>
> I'm cloning a repository in Apache Cordova (cordova-docs) and as soon as I
> check out the repo in my laptop, I check the status of the repo with *git
> status*. Oddly, I get some image files as modified (the ones under
> cordova-docs/templates folder).
>
> Looking around in internet I found this thread in SO where a person
> recommends to modify the .gitattributes file in the repository to change
> the EOL of the files to LF. I need to say here that I'm using Ubuntu 12.04.
>
>
> http://stackoverflow.com/questions/12205846/git-shows-random-files-as-modified-after-clone-cant-discard-them
>
> My question, has someone else have had this problem before? How you fixed
> the problem? is it recommended to commit the changes in .gitattributes?
>
> Appreciate your input to solve this problem
>
> --
> Victor Adrian Sosa Herrera
> IBM Software Engineer
> Guadalajara, Jalisco
>