diff options
Diffstat (limited to 'internal/gitaly/service/repository/util.go')
-rw-r--r-- | internal/gitaly/service/repository/util.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/gitaly/service/repository/util.go b/internal/gitaly/service/repository/util.go index 97a96de28..852995543 100644 --- a/internal/gitaly/service/repository/util.go +++ b/internal/gitaly/service/repository/util.go @@ -124,11 +124,12 @@ func (s *server) createRepository( // The way packfiles are generated may not be deterministic, so we skip over the // object database. case filepath.Join(newRepoDir.Path(), "objects"): + return fs.SkipDir // FETCH_HEAD refers to the remote we're fetching from. This URL may not be // deterministic, e.g. when fetching from a temporary file like we do in // CreateRepositoryFromBundle. case filepath.Join(newRepoDir.Path(), "FETCH_HEAD"): - return fs.SkipDir + return nil } // We do not care about directories. |