Skip to content

Commit

Permalink
clone: fix folder name used for operations after clonning
Browse files Browse the repository at this point in the history
Instead of using project's name as the directory name for adding 'upstream'
remote, uses project's "path", which is a different field in project's object
and can be specified by the user with a totally different text from the one
used as 'name'.

Signed-off-by: Bruno Meneguele <[email protected]>
  • Loading branch information
bmeneg committed Sep 9, 2020
1 parent f8306df commit c1067e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var cloneCmd = &cobra.Command{
if len(args) > 1 {
dir = args[1]
} else {
dir = project.Name
dir = project.Path
}
ffProject, err := gitlab.FindProject(project.ForkedFromProject.PathWithNamespace)
if err != nil {
Expand Down

0 comments on commit c1067e5

Please sign in to comment.