Skip to content

Commit 60bae0d

Browse files
committed
Avoid nesting cloned OGM repos inside themselves
Providing both `directory` and `path` to Git.clone results in the repo being cloned into a directory nested inside itself. This may be a fix for #144.
1 parent c2c5427 commit 60bae0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/geo_combine/harvester.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def clone(repo = nil)
7373
return 0 if File.directory? repo_path
7474

7575
repo_url = "https://github.com/OpenGeoMetadata/#{repo}.git"
76-
Git.clone(repo_url, repo, path: repo_path, depth: 1) && 1
76+
Git.clone(repo_url, nil, path: ogm_path, depth: 1) && 1
7777
end
7878

7979
private

0 commit comments

Comments
 (0)