Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit b0c4bc3

Browse files
committed
Comment on dir translation
1 parent 4905bbd commit b0c4bc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/sync/eventcache.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ func (cache eventCache) Add(ev timedEvent) {
2727
log.Info("ignored Create then Remove")
2828
return
2929
}
30-
}
31-
if ok {
3230
log.Info("replaced %s with %s", lastEvent.Event(), ev.Event())
3331
}
3432
// Only let the latest event for a path have action.

internal/sync/sync.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ func (s Sync) initSync() error {
9090

9191
start := time.Now()
9292
// Delete old files on initial sync (e.g git checkout).
93+
// Add the "/." to the local directory so rsync doesn't try to place the directory
94+
// into the remote dir.
9395
err := s.syncPaths(true, s.LocalDir+"/.", s.RemoteDir)
9496
if err == nil {
9597
flog.Success("finished initial sync (%v)", time.Since(start).Truncate(time.Millisecond))

0 commit comments

Comments
 (0)