We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b8023 commit cb8298bCopy full SHA for cb8298b
modules/repository/create.go
@@ -167,7 +167,11 @@ func getDirectorySize(path string) (int64, error) {
167
}
168
return err
169
170
- if info.IsDir() {
+
171
+ fileName := info.Name()
172
+ // Ignore temporary Git files as they will like be missing once info.Info is
173
+ // called and cause a disrupt to the whole operation.
174
+ if info.IsDir() || strings.HasSuffix(fileName, ".lock") || strings.HasPrefix(filepath.Base(fileName), "tmp_graph") {
175
return nil
176
177
f, err := info.Info()
0 commit comments