Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Git: Better support for multiple repositories #73

Closed
flosell opened this issue Dec 9, 2015 · 1 comment
Closed

Git: Better support for multiple repositories #73

flosell opened this issue Dec 9, 2015 · 1 comment

Comments

@flosell
Copy link
Owner

flosell commented Dec 9, 2015

Some use cases demand that more than one repository can be checked out into the same workspace.
At the moment, git support is very specific on only supporting one directory.

As a workaround, you can obviously use shell commands to check out repositories into a workspace yourself.

Maybe this could be tied in with the general purpose workspace to be implemented in #72 to create a composable, flexible solution, maybe something like this:

(with-workspace
  checkout-foo
  checkout-bar
  do-something)
@flosell
Copy link
Owner Author

flosell commented Jan 2, 2016

with-workspace was implemented in #72, and the new lambdacd-git library will have a separate cloning step along these lines:

(defn clone-foo [args ctx]
  (lambdacd-git/clone ctx foo-repo "master" (str (:cwd args) "/foo")))

(defn clone-bar [args ctx]
  (lambdacd-git/clone ctx bar-repo "master" (str (:cwd args) "/bar")))

(with-workspace
  clone-foo
  clone-bar
  do-something)

Follow flosell/lambdacd-git#2 for updates

@flosell flosell closed this as completed Jan 2, 2016
flosell added a commit that referenced this issue Apr 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant