Synchronization tool file history tests modified to set up a temporary git repo (#138)

This commit is contained in:
Domas Monkus 2020-11-03 11:19:36 +02:00 committed by GitHub
parent e8103502da
commit 54637e7313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 122 additions and 46 deletions

View file

@ -133,8 +133,7 @@ func (f FileUnalteredChecker) Check(path string, setup Setup) error {
} else {
return fmt.Errorf("failed to get stat for %q: %v", trgPath, err)
}
}
if srcInfo.IsDir() {
} else if srcInfo.IsDir() {
return fmt.Errorf("%q is a directory in source repository", path)
}