aboutsummaryrefslogtreecommitdiffstats
path: root/cmd_linux.go
diff options
context:
space:
mode:
authorBernhard Guillon <Bernhard.Guillon@begu.org>2026-07-07 23:12:53 +0200
committerBernhard Guillon <Bernhard.Guillon@begu.org>2026-07-07 23:12:53 +0200
commit2850cd0c3156cdeb42594664cc087641fe740236 (patch)
treeed8189345675087d0a7da9546d68dc9b4a0806d9 /cmd_linux.go
parent4cb0b6cde565291bee4c7d094ea0d0d7fa4f26ce (diff)
downloadsourcewatch-2850cd0c3156cdeb42594664cc087641fe740236.tar.gz
sourcewatch-2850cd0c3156cdeb42594664cc087641fe740236.zip
Compare only size+symlink for sync — mode and modtime are unreliable across NTFS→Docker volume
Diffstat (limited to 'cmd_linux.go')
-rw-r--r--cmd_linux.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd_linux.go b/cmd_linux.go
index 390e431..305b7d1 100644
--- a/cmd_linux.go
+++ b/cmd_linux.go
@@ -194,17 +194,13 @@ func syncFromManifest(remote *Manifest, stack *GitignoreStack) {
if localMeta, exists := localManifest.Files[relPath]; exists {
if localMeta.Size == remoteMeta.Size &&
- localMeta.Mode == remoteMeta.Mode &&
- localMeta.ModTime.Equal(remoteMeta.ModTime) &&
localMeta.Symlink == remoteMeta.Symlink {
continue
}
if debugShown < 5 {
- logDebug("mismatch %s: size=%d/%d mode=%o/%o modtime=%v/%v symlink=%q/%q",
+ logDebug("mismatch %s: size=%d/%d symlink=%q/%q",
relPath,
localMeta.Size, remoteMeta.Size,
- localMeta.Mode, remoteMeta.Mode,
- localMeta.ModTime, remoteMeta.ModTime,
localMeta.Symlink, remoteMeta.Symlink)
debugShown++
}