Skip to content

Commit 7d7936c

Browse files
authored
Merge pull request #176 from covexo/sync-improvements
Sync improvements
2 parents 572f347 + 3ed3147 commit 7d7936c

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
With the DevSpace CLI, developers can build cloud-native applications directly inside a Kubernetes cluster. It works with any self-hosted Kubernetes cluster (e.g. minikube or baremetal) as well as with managed Kubernetes clusters provided by cloud platforms, e.g. Google Kubernetes Engine.
99

10-
## Why using a DevSpace?
10+
## Why use a DevSpace?
1111
Your DevSpace lets you build, test and run code directly inside a Kubernetes cluster and:
1212
- Allows you to access cluster-internal services and data with ease
1313
- Works perfectly with your favorite **hot reloading** tools (e.g. nodemon)

pkg/devspace/sync/evaluater.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,13 @@ func shouldUpload(relativePath string, stat os.FileInfo, s *SyncConfig, isInitia
5252
if s.uploadIgnoreMatcher.MatchesPath(relativePath) {
5353
// Add to file map and prevent download if local file is newer than the remote one
5454
if s.fileIndex.fileMap[relativePath] != nil && s.fileIndex.fileMap[relativePath].Mtime < ceilMtime(stat.ModTime()) {
55-
fileInformation := &fileInformation{
55+
// Add it to the fileMap
56+
s.fileIndex.fileMap[relativePath] = &fileInformation{
5657
Name: relativePath,
5758
Mtime: ceilMtime(stat.ModTime()),
5859
Size: stat.Size(),
5960
IsDirectory: stat.IsDir(),
6061
}
61-
62-
// Add it to the fileMap
63-
s.fileIndex.fileMap[relativePath] = fileInformation
6462
}
6563

6664
return false

0 commit comments

Comments
 (0)