git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Issues with file status over samba
@ 2009-06-02  9:11 JiHO
  2009-06-17 18:51 ` jiho
  2009-07-31 10:03 ` Tobia Conforto
  0 siblings, 2 replies; 5+ messages in thread
From: JiHO @ 2009-06-02  9:11 UTC (permalink / raw)
  To: git

Hello everyone,

When working on a git repository on a mounted samba share, I am having  
trouble because some files are detected as changed while they are not.  
git status works OK but git GUIs (git gui and gitX on mac OS X) show  
the problem.

The issue was initially investigated through gitX and the bug report  
is there:

http://gitx.lighthouseapp.com/projects/17830/tickets/147-wrong-status-over-samba

Please let me know what I can do to test this further and help fix  
this issue.

Thank you very much in advance. Sincerely,

JiHO
---
http://jo.irisson.free.fr/

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

* Re: Issues with file status over samba
  2009-06-02  9:11 Issues with file status over samba JiHO
@ 2009-06-17 18:51 ` jiho
  2009-06-17 20:45   ` Martin Langhoff
  2009-07-31 10:03 ` Tobia Conforto
  1 sibling, 1 reply; 5+ messages in thread
From: jiho @ 2009-06-17 18:51 UTC (permalink / raw)
  To: git

Hi,

I am replying to my own message in the hope to get more follow ups.

On Jun 2, 5:11 am, JiHO <jo.li...@gmail.com> wrote:
> When working on a git repository on a mounted samba share, I am having  
> trouble because some files are detected as changed while they are not.  
> [...]
> The issue was initially investigated through gitX and the bug report  
> is there:
> http://gitx.lighthouseapp.com/projects/17830/tickets/147-wrong-status...

I am now including here the finding reported there, for easier access.


* On the server, through a ssh connection:

acanthurus:~/discus $ git update-index -q --unmerged
--ignore-missing --refresh

acanthurus:~/discus $ git ls-files --others --exclude-standard
-z
discus.tmprojggplot_dens_and_points.Rij.shinvert_Y.Rjava_options.
txtplot_gps.Rplots.pdfrange_circular_fix.Rscratchpad.Rscratchpad.sh

acanthurus:~/discus $ git diff-files -z :100644 100644
7387d20924d2d956de25c6e9bf64f30e02aa9d35
0000000000000000000000000000000000000000 Mbb.conf:100644
100644 ec878543abb1f97a9236707b36b367e318e3393b
0000000000000000000000000000000000000000 Mreorg_data.R:100644
100644 4340bf03097dbb7c3da5519ba809915515c4b155
0000000000000000000000000000000000000000
Msrc/correct_tracks.R:100644 100644
c2ed8503d24cd97ce026c865a81094da4fca9ba9
0000000000000000000000000000000000000000 Msrc/stats.R

git gui works just fine with X11 forwarding.



* On my machine, in the same directory mounted via samba:

/Volumes/jiho/discus $ git update-index -q --unmerged
--ignore-missing --refresh

/Volumes/jiho/discus $ git ls-files --others
--exclude-standard -z
discus.tmprojggplot_dens_and_points.Rij.shinvert_Y.Rjava_options.
txtplot_gps.Rplots.pdfrange_circular_fix.Rscratchpad.Rscratchpad.sh

/Volumes/jiho/discus $ git diff-files -z :100644 100644
3c92e1bf126ac860c901056b95a12ca5ec3c9fab
0000000000000000000000000000000000000000 M.gitignore:100644
100644 e589c53c8bc1236f2c26fb919b7cbde58eeba5a4
0000000000000000000000000000000000000000 MREADME.md:100755
100755 b2627bde1a657c64002f12f46bd875ba1510d31f
0000000000000000000000000000000000000000
Mapply-to-all.sh:100755 100755
872559f9a0ab6c0d6652e28f76bc327d8710d378
0000000000000000000000000000000000000000 Mbb:100644 100644
7387d20924d2d956de25c6e9bf64f30e02aa9d35
0000000000000000000000000000000000000000 Mbb.conf:100755
100755 549031662747a3e72b3bab1f632c254249cb9ed1
0000000000000000000000000000000000000000 Mdata_stats.sh:100644
100644 f9ce73e94f14285292a84b4fabeb0419afbbc522
0000000000000000000000000000000000000000
Mglobal_stats.R:100644 100644
ec878543abb1f97a9236707b36b367e318e3393b
0000000000000000000000000000000000000000 Mreorg_data.R:100644
100644 94a9ed024d3859793618152ea559a168bbcbb5e2
0000000000000000000000000000000000000000
Msrc/GNU_GPL.txt:100644 100644
4340bf03097dbb7c3da5519ba809915515c4b155
0000000000000000000000000000000000000000
Msrc/correct_tracks.R:100644 100644
d62437858ec20a4e2ea205cba03d0d0d4a12d97c
0000000000000000000000000000000000000000
Msrc/ij.macro.open_process_stack.txt:100644 100644
ea87b2ed9f28789ad11dfb8d3a101f7824e4498e
0000000000000000000000000000000000000000
Msrc/imagej/plugins/Manual_Tracking.java:100644 100644
9f9f3c08fc1a2c86b4e52ed0d3b9f3650e27e0e9
0000000000000000000000000000000000000000
Msrc/lib_circular_stats.R:100644 100644
5b54e19e1d271cbe18886fe1979e2f87a4eed926
0000000000000000000000000000000000000000
Msrc/lib_discus.sh:100644 100644
2c0b85db44a1f90e1c00c828cce94f3de67348a7
0000000000000000000000000000000000000000
Msrc/lib_image_time.R:100644 100644
d2fe114ea8044716b73d103d9fffda18a7417c4e
0000000000000000000000000000000000000000
Msrc/lib_shell.sh:100644 100644
c2ed8503d24cd97ce026c865a81094da4fca9ba9
0000000000000000000000000000000000000000 Msrc/stats.R:100644
100644 776694862aec61259f9445d8e4f2bcfe176728a8
0000000000000000000000000000000000000000
Msrc/test_circular.R:100755 100755
28c9181bbdfd6aa0651242d66db386eef4b7cf40
0000000000000000000000000000000000000000 Msync_data.sh

/Volumes/jiho/discus $ git gui

A window pops up stating:

	No differences detected

	.gitignore has no changed

	The modification date of this file was updated by
	another application, but the content within the file
	was not changed.

	A rescan will be automatically started to find other
	files which may have the same state.

	[OK]

After pressing OK, the window keeps reappearing. .gitignore is the
first file in the list so that's why it is mentioned here.

This is not an issue of clock differences betweent eh two computer
because setting the time on the server to -1h does not help.


I hope this will be enough information for people indicating me where
to look from here. I understand that this might not be a very common
scenario: after all git is in part about having local copies of the
code and pushing to servers. Yet I find it very practical to edit the
remote files with the local tools I know and be able to use the
changes immediately on the server, and for this, a file system share
is a very good solution. The server is within a windows infrastructure
and Samba was simpler to setup than NFS (I don't have the same user ID
on both machines and none can be easily changed) so overall it made
sense to use Samba.

Thanks in advance for your help,

JiHO
---
http://maururu.net

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

* Re: Issues with file status over samba
  2009-06-17 18:51 ` jiho
@ 2009-06-17 20:45   ` Martin Langhoff
  2009-06-17 20:58     ` JiHO
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Langhoff @ 2009-06-17 20:45 UTC (permalink / raw)
  To: jiho; +Cc: git

On Wed, Jun 17, 2009 at 8:51 PM, jiho<jo.lists@gmail.com> wrote:
> This is not an issue of clock differences betweent eh two computer
> because setting the time on the server to -1h does not help.

How about having ntp running on both?

cheers,



m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

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

* Re: Issues with file status over samba
  2009-06-17 20:45   ` Martin Langhoff
@ 2009-06-17 20:58     ` JiHO
  0 siblings, 0 replies; 5+ messages in thread
From: JiHO @ 2009-06-17 20:58 UTC (permalink / raw)
  To: Martin Langhoff; +Cc: git

On 2009-June-17  , at 16:45 , Martin Langhoff wrote:
> On Wed, Jun 17, 2009 at 8:51 PM, jiho<jo.lists@gmail.com> wrote:
>> This is not an issue of clock differences betweent eh two computer
>> because setting the time on the server to -1h does not help.
>
> How about having ntp running on both?

It does already (the server is Ubuntu Linux running ntp, my machine is  
a MacBook synchronizing with Apple's time servers). I was worried  
about second to split second differences that might occur when the  
machines drift away from the reference. Plus samba sometimes messes up  
the times because of its 2-seconds round off setting (search for "dos  
filetime resolution" there: http://samba.org/samba/docs/man/manpages-3/smb.conf.5.html 
  )

JiHO
---
http://maururu.net

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

* Re: Issues with file status over samba
  2009-06-02  9:11 Issues with file status over samba JiHO
  2009-06-17 18:51 ` jiho
@ 2009-07-31 10:03 ` Tobia Conforto
  1 sibling, 0 replies; 5+ messages in thread
From: Tobia Conforto @ 2009-07-31 10:03 UTC (permalink / raw)
  To: git

JiHO wrote:
> When working on a git repository on a mounted samba share, I am having
> trouble because some files are detected as changed while they are not.
> git status works OK but git GUIs (git gui and gitX on mac OS X) show
> the problem.

I'm seeing this problem too, accessing a git repository on a Samba share.

Steps to reproduce:
- create git repository on linux;
- connect from OS X over Samba;
- git status (over samba) reports all files as changed;
- git diff works, it only shows the actual differences;
- after the first git diff, any subsequent git status will work,
  even after disconnecting and reconnecting to the samba share.

Tobia

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

end of thread, other threads:[~2009-07-31 10:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02  9:11 Issues with file status over samba JiHO
2009-06-17 18:51 ` jiho
2009-06-17 20:45   ` Martin Langhoff
2009-06-17 20:58     ` JiHO
2009-07-31 10:03 ` Tobia Conforto

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).