skip source copy if source and destination are the same
@@ -28,10 +28,12 @@ func (f *File) Download(config *api.Config) (*api.SourceInfo, error) {
}
glog.V(1).Infof("Copying sources from %q to %q", copySrc, config.WorkingSourceDir)
+ if copySrc != config.WorkingSourceDir {
err := f.CopyContents(copySrc, config.WorkingSourceDir)
if err != nil {
return nil, err
}
+ }
return &api.SourceInfo{
Location: source,
