mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-28 10:19:00 +00:00
Fix for perserve dir bug (#184)
This commit is contained in:
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
- GitLab `--preserve-dir` flag not being respected; thanks @attachmentgenie
|
||||
### Security
|
||||
|
||||
## [1.7.7] - 2/12/22
|
||||
|
||||
@@ -477,7 +477,7 @@ func CloneAllRepos(git git.Gitter, cloneTargets []scm.Repo) {
|
||||
repoSlug := getAppNameFromURL(repo.URL)
|
||||
limit.Execute(func() {
|
||||
if repo.Path != "" && os.Getenv("GHORG_PRESERVE_DIRECTORY_STRUCTURE") == "true" {
|
||||
path = repo.Path
|
||||
repoSlug = repo.Path
|
||||
}
|
||||
|
||||
repo.HostPath = filepath.Join(os.Getenv("GHORG_ABSOLUTE_PATH_TO_CLONE_TO"), parentFolder, configs.GetCorrectFilePathSeparator(), repoSlug)
|
||||
|
||||
@@ -11,6 +11,6 @@ var versionCmd = &cobra.Command{
|
||||
Short: "Print the version number of Ghorg",
|
||||
Long: `All software has versions. This is Ghorg's`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("v1.7.7")
|
||||
fmt.Println("v1.7.8")
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user