Synchronization tool file history tests modified to set up a temporary git repo (#138)
This commit is contained in:
parent
e8103502da
commit
54637e7313
6 changed files with 122 additions and 46 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue