# Files need updating following a clone?

4 messages from 2008-04-30 to 2008-05-01. Participants: edpark, Matt Graham, Avery Pennarun.
Thread: https://gitlist.dev/t/13338

## edpark, 2008-04-30 23:12

Subject: Files need updating following a clone?
Message-ID: <65e5553a-a630-4b1a-9c81-f0ed7d9d7361@c19g2000prf.googlegroups.com>
URL: https://gitlist.dev/e/65e5553a-a630-4b1a-9c81-f0ed7d9d7361%40c19g2000prf.googlegroups.com

```
This is really strange and I'm wondering if anyone here can help me
out.

I just cloned a remote repository and when I execute a 'git status'
right after it says that some files need to be updated:

utsd.txt:   needs update

If I just cloned a remote repo how did these files get modified?  How
can I make git realize that these files aren't modified?
Further, if I clone to a different machine then the git on that
machine doesn't indicate that any files were modified (??).

Thanks in advance!

```

## Matt Graham, 2008-05-01 00:32

Subject: Re: Files need updating following a clone?
Message-ID: <1c5969370804301732i282064f7r55858d54a6796791@mail.gmail.com>
URL: https://gitlist.dev/e/1c5969370804301732i282064f7r55858d54a6796791%40mail.gmail.com
In-Reply-To: <65e5553a-a630-4b1a-9c81-f0ed7d9d7361@c19g2000prf.googlegroups.com>

```
On Wed, Apr 30, 2008 at 7:12 PM, edpark <edpark@gmail.com> wrote:
> This is really strange and I'm wondering if anyone here can help me
>  out.
>
>  I just cloned a remote repository and when I execute a 'git status'
>  right after it says that some files need to be updated:
>
>  utsd.txt:   needs update
>
>  If I just cloned a remote repo how did these files get modified?  How
>  can I make git realize that these files aren't modified?
>  Further, if I clone to a different machine then the git on that
>  machine doesn't indicate that any files were modified (??).

What systems are you using?  Someone recently posted a probably
unrelated issue when mixing macs and windows.
http://article.gmane.org/gmane.comp.version-control.git/80548/match=mac+modified

```

## edpark, 2008-05-01 00:54

Subject: Re: Files need updating following a clone?
Message-ID: <eb5498bc-9169-4f03-a725-f8ff98f9b39a@x19g2000prg.googlegroups.com>
URL: https://gitlist.dev/e/eb5498bc-9169-4f03-a725-f8ff98f9b39a%40x19g2000prg.googlegroups.com
In-Reply-To: <1c5969370804301732i282064f7r55858d54a6796791@mail.gmail.com>

```
Hi Matt, thanks for pointing that out.
Yes, it turns out that we are using different systems.  The original
commit (to Github.com) was on a Mac but then there were a few commits
made from a Windows based system (through Parallels).
It's only on a windows based system that Git will claim that files
need to be updated; this doesn't happen on a Mac.
Hope this helps someone figure out what's going on ..


On Apr 30, 5:32 pm, "Matt Graham" <mdg...@gmail.com> wrote:
> On Wed, Apr 30, 2008 at 7:12 PM, edpark <edp...@gmail.com> wrote:
> > This is really strange and I'm wondering if anyone here can help me
> >  out.
>
> >  I just cloned a remote repository and when I execute a 'git status'
> >  right after it says that some files need to be updated:
>
> >  utsd.txt:   needs update
>
> >  If I just cloned a remote repo how did these files get modified?  How
> >  can I make git realize that these files aren't modified?
> >  Further, if I clone to a different machine then the git on that
> >  machine doesn't indicate that any files were modified (??).
>
> What systems are you using?  Someone recently posted a probably
> unrelated issue when mixing macs and windows.http://article.gmane.org/gmane.comp.version-control.git/80548/match=m...
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

```

## Avery Pennarun, 2008-05-01 01:07

Subject: Re: Files need updating following a clone?
Message-ID: <32541b130804301807i2e88170dj1fcbf3cec769b69d@mail.gmail.com>
URL: https://gitlist.dev/e/32541b130804301807i2e88170dj1fcbf3cec769b69d%40mail.gmail.com
In-Reply-To: <eb5498bc-9169-4f03-a725-f8ff98f9b39a@x19g2000prg.googlegroups.com>

```
On 4/30/08, edpark <edpark@gmail.com> wrote:
> Hi Matt, thanks for pointing that out.
>  Yes, it turns out that we are using different systems.  The original
>  commit (to Github.com) was on a Mac but then there were a few commits
>  made from a Windows based system (through Parallels).
>  It's only on a windows based system that Git will claim that files
>  need to be updated; this doesn't happen on a Mac.
>  Hope this helps someone figure out what's going on ..

You probably have files checked into your tree with windows-style CRLF
instead of unix-style LF line endings, and git for Windows nowadays
has "git config --global core.autocrlf true" set.

If you configure your windows autocrlf setting to false, this
particular symptom will go away, but you probably want to actually fix
the files in the repo so they don't have CRLF problems.  You might be
able to do that just by doing "git commit -a".

Good luck,

Avery

```
