Re: [git-users] git status shows different status for local and remote drive

2015-04-07 Thread Konstantin Khomoutov
On Sun, 5 Apr 2015 15:21:36 -0700 (PDT)
Andres Suarez webmas...@colservers.com wrote:

 Hi, I have a git repository. This repository is under a Linux
 machine. I also have this repository available on a Windows machine
 under a network drive. I have git installed both on windows and Linux.
[...]
 nothing to commit (working directory clean)
[...]

 When I do git status under Windows using cdm on the network folder I
 get: ***

What is cdm?

[...]
 Changes not staged for commit:
   (use git add/rm file... to update what will be committed)
   (use git checkout -- file... to discard changes in working
 directory)
 
 deleted: explorer/data/plugins/mq.serial/queues/channel-nodes:0
 deleted:
 explorer/data/plugins/mq.serial/queues/channel-nodes:ajxp_conf

The ':' is not a valid character for Windows pathnames -- it can only
appear once in a pathname -- exactly at position 2 in it (if we count
from one), with the first one being a drive letter.
IOW, this pathname has no chance of being correctly manipulated by Git
for Windows running on Windows machine.

 modified:   framework/cli/views/webapp/protected/yiic
 modified:   framework/db/schema/cubrid/CCubridColumnSchema.php
[...]

I can only guess here, but it might have something to do with
end-of-line conversion settings.
Does the project include the .gitattributes file?

See [1] and [2] in general for more info.

 Untracked files:
   (use git add file... to include in what will be committed)
 
 explorer/data/plugins/mq.serial/queues/C81O4T~E
 explorer/data/plugins/mq.serial/queues/CBTQK4~4

These, I reckon, are just 8dot3 filenames automatically created by
NTFS for those two invalid filenames containing the ':' characters.
See [3] for more.

While technically these names (supposedly) refer to the contents of
those files with invalid names, Git's index has no way to know about
this and hence shows these files as untracked. [*]

[...]
 Why this is different? I try deleting the repo and cloning again,
 clean the cache, but always, when doing under Windows I say the same
 status, and when doing under Linux I saw directory clean.

As you can see from the symptoms, the problem has nothing to do with
transfer of Git repository (the fetch part of cloning), and the
problem is rather in the work tree (the checking out part of cloning
-- which creates files as recorded in the index in the work tree).

[*] It's interesting to bring this problem up with the Git for Windows
developers: I wonder if it's possible to somehow inspect the
metadata of a file on NTFS to know its true name and use that to
search it in the index.

1. http://stackoverflow.com/a/5788054/720999
2. http://stackoverflow.com/search?q=[git]+modified+windows
3. http://blogs.msdn.com/b/adioltean/archive/2005/01/27/362105.aspx

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] git status shows different status for local and remote drive

2015-04-05 Thread Andres Suarez
Hi, I have a git repository. This repository is under a Linux machine. I 
also have this repository available on a Windows machine under a network 
drive. I have git installed both on windows and Linux.

When I do a git status under the Linux console, I get 
***
calete@hyper:~/public_html/fctyii$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
nothing to commit (working directory clean)
***

When I do git status under Windows using cdm on the network folder I get:
***
Z:\fctyiigit status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use git push to publish your local commits)

Changes not staged for commit:
  (use git add/rm file... to update what will be committed)
  (use git checkout -- file... to discard changes in working directory)

deleted:explorer/data/plugins/mq.serial/queues/channel-nodes:0
deleted:   
 explorer/data/plugins/mq.serial/queues/channel-nodes:ajxp_co
nf
modified:   framework/cli/views/webapp/protected/yiic
modified:   framework/db/schema/cubrid/CCubridColumnSchema.php
modified:   framework/db/schema/cubrid/CCubridSchema.php
modified:   framework/db/schema/cubrid/CCubridTableSchema.php
modified:   framework/views/ca/error.php
modified:   framework/views/ca/error400.php
modified:   framework/views/ca/error403.php
modified:   framework/views/ca/error404.php
modified:   framework/views/ca/error500.php
modified:   framework/views/ca/error503.php
modified:   framework/views/ca/log-firebug.php
modified:   framework/views/ca/log.php
modified:   framework/views/ca/profile-callstack-firebug.php
modified:   framework/views/ca/profile-callstack.php
modified:   framework/views/ca/profile-summary-firebug.php
modified:   framework/views/ca/profile-summary.php
modified:   framework/yiic
modified:   protected/yiic

Untracked files:
  (use git add file... to include in what will be committed)

explorer/data/plugins/mq.serial/queues/C81O4T~E
explorer/data/plugins/mq.serial/queues/CBTQK4~4


It took 2.38 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
no changes added to commit (use git add and/or git commit -a)

Z:\fctyii
***

Why this is different? I try deleting the repo and cloning again, clean the 
cache, but always, when doing under Windows I say the same status, and when 
doing under Linux I saw directory clean.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.