git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Files need updating following a clone?
@ 2008-04-30 23:12 edpark
  2008-05-01  0:32 ` Matt Graham
  0 siblings, 1 reply; 4+ messages in thread
From: edpark @ 2008-04-30 23:12 UTC (permalink / raw)
  To: git

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!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Files need updating following a clone?
  2008-04-30 23:12 Files need updating following a clone? edpark
@ 2008-05-01  0:32 ` Matt Graham
  2008-05-01  0:54   ` edpark
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Graham @ 2008-05-01  0:32 UTC (permalink / raw)
  To: edpark; +Cc: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Files need updating following a clone?
  2008-05-01  0:32 ` Matt Graham
@ 2008-05-01  0:54   ` edpark
  2008-05-01  1:07     ` Avery Pennarun
  0 siblings, 1 reply; 4+ messages in thread
From: edpark @ 2008-05-01  0:54 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Files need updating following a clone?
  2008-05-01  0:54   ` edpark
@ 2008-05-01  1:07     ` Avery Pennarun
  0 siblings, 0 replies; 4+ messages in thread
From: Avery Pennarun @ 2008-05-01  1:07 UTC (permalink / raw)
  To: edpark; +Cc: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-01  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 23:12 Files need updating following a clone? edpark
2008-05-01  0:32 ` Matt Graham
2008-05-01  0:54   ` edpark
2008-05-01  1:07     ` Avery Pennarun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).