Fix for perserve dir bug (#184)

This commit is contained in:
Jay Gabriels
2022-02-14 09:06:06 -08:00
committed by GitHub
parent 1d0581d86f
commit 43136eeb27
3 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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")
},
}