* Git status shows modifications after cloning
@ 2010-03-08 15:32 jateeq
2010-03-08 15:40 ` Ilari Liusvaara
2010-03-08 18:37 ` jateeq
0 siblings, 2 replies; 3+ messages in thread
From: jateeq @ 2010-03-08 15:32 UTC (permalink / raw)
To: git
Hello,
After cloning from a local repository, a git status shows me that each file
in the repository has been modified - I don't want this to happen. I have
searched around the net, and there is stuff about this happening if the
configurations for the original and the clone are not the same, with
specific mention of the variable core.autocrlf. However, this variable is
unspecified in both repositories, and the differences in config files is
listed below.
Origin:
[core]
repositoryformatversion = 0
filemode = true
bare = true
Clone:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = /home/ruggeddoc/Documents/Primary/InstallationGuides/RuggedBackbone
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "jateeq.2010-03-08.09-49"]
remote = origin
merge = refs/heads/master
I haven't tried unsetting the logallrefupdates (I want to log updates). Does
anyone think this is a config file issue? If it is, any idead on how to
solve it? If not, what can I do so that git status, or git diff do not show
modified files right after cloning?
NOTE: On the origin, the only branch that exists is master, whereas after
I'm done cloning, I create another branch and then checkout that branch's
head right from the start.
Thank you for your help,
Jawad
--
View this message in context: http://old.nabble.com/Git-status-shows-modifications-after-cloning-tp27821819p27821819.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git status shows modifications after cloning
2010-03-08 15:32 Git status shows modifications after cloning jateeq
@ 2010-03-08 15:40 ` Ilari Liusvaara
2010-03-08 18:37 ` jateeq
1 sibling, 0 replies; 3+ messages in thread
From: Ilari Liusvaara @ 2010-03-08 15:40 UTC (permalink / raw)
To: jateeq; +Cc: git
On Mon, Mar 08, 2010 at 07:32:25AM -0800, jateeq wrote:
>
> After cloning from a local repository, a git status shows me that each file
> in the repository has been modified - I don't want this to happen. I have
> searched around the net, and there is stuff about this happening if the
> configurations for the original and the clone are not the same, with
> specific mention of the variable core.autocrlf. However, this variable is
> unspecified in both repositories, and the differences in config files is
> listed below.
At least having core.autocrlf enabled and having CRLF files in repository
is known to cause problems like that. But reading the configuration, it doesn't
look this is Windows system (and the rest don't tend to have core.autocrlf
enabled).
The files in repository definitely should not have CRLF line endings (the
proper one is just LF).
-Ilari
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git status shows modifications after cloning
2010-03-08 15:32 Git status shows modifications after cloning jateeq
2010-03-08 15:40 ` Ilari Liusvaara
@ 2010-03-08 18:37 ` jateeq
1 sibling, 0 replies; 3+ messages in thread
From: jateeq @ 2010-03-08 18:37 UTC (permalink / raw)
To: git
I'm sorry i forgot to mention that I'm using Linux. Well, no, autocrlf wasn't
set by default, but I still get all those modifications in the status. Any
other reasons why this could be happening?
Jawad
--
View this message in context: http://old.nabble.com/Git-status-shows-modifications-after-cloning-tp27821819p27825623.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-08 18:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 15:32 Git status shows modifications after cloning jateeq
2010-03-08 15:40 ` Ilari Liusvaara
2010-03-08 18:37 ` jateeq
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).