Skip to content

Commit 43136ee

Browse files
authored
Fix for perserve dir bug (gabrie30#184)
1 parent 1d0581d commit 43136ee

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
88
### Deprecated
99
### Removed
1010
### Fixed
11+
- GitLab `--preserve-dir` flag not being respected; thanks @attachmentgenie
1112
### Security
1213

1314
## [1.7.7] - 2/12/22

cmd/clone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func CloneAllRepos(git git.Gitter, cloneTargets []scm.Repo) {
477477
repoSlug := getAppNameFromURL(repo.URL)
478478
limit.Execute(func() {
479479
if repo.Path != "" && os.Getenv("GHORG_PRESERVE_DIRECTORY_STRUCTURE") == "true" {
480-
path = repo.Path
480+
repoSlug = repo.Path
481481
}
482482

483483
repo.HostPath = filepath.Join(os.Getenv("GHORG_ABSOLUTE_PATH_TO_CLONE_TO"), parentFolder, configs.GetCorrectFilePathSeparator(), repoSlug)

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ var versionCmd = &cobra.Command{
1111
Short: "Print the version number of Ghorg",
1212
Long: `All software has versions. This is Ghorg's`,
1313
Run: func(cmd *cobra.Command, args []string) {
14-
fmt.Println("v1.7.7")
14+
fmt.Println("v1.7.8")
1515
},
1616
}

0 commit comments

Comments
 (0)