You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users will have the ability to specify every facet of the source and
destination environments: repo URL, branch name, and environment
folder. New tests check for various combinations of those options.
Some minor changes were made to some repository implementation details,
so that it can checkout specific branches (rather than just the default)
and so that calling Clone() multiple times does not result in an error.
Implements #92
returnfmt.Errorf("could not determine unique environment name for destination repository - check that only one directory exists under it and you can write to your cache folder")
returnfmt.Errorf("could not determine unique environment name for source repository - check that only one directory exists under it and you can write to your cache folder")
return"", fmt.Errorf("could not determine unique environment name for source repository - check that only one directory exists under it and you can write to your cache folder")
160
+
}
161
+
returndir, nil
162
+
}
163
+
164
+
dirs, err:=r.DirectoriesUnderPath("environments")
165
+
iferr!=nil {
166
+
return"", err
167
+
}
168
+
for_, dir:=rangedirs {
169
+
ifdir.Name() ==folder {
170
+
returndir.Name(), nil
171
+
}
172
+
}
173
+
return"", fmt.Errorf("did not find environment folder matching '%v', only found '%v'", folder, dirs)
0 commit comments