summaryrefslogtreecommitdiff
path: root/yarns/branches-workspaces.yarn
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-04-12 11:32:31 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-27 15:44:14 +0000
commitfa5c470ad5dd3a3416217363983eb3795ef53c79 (patch)
tree4dc11b509b50d1da3471ef825d1291f697811a50 /yarns/branches-workspaces.yarn
parentcc7be86c788a5337ebce16365b9b51341b7cddc2 (diff)
downloadmorph-fa5c470ad5dd3a3416217363983eb3795ef53c79.tar.gz
Add a test for `morph get-repo`
Change-Id: Ie0ac708946c3b1d65d2022638c02d6a2d288ad9d
Diffstat (limited to 'yarns/branches-workspaces.yarn')
-rw-r--r--yarns/branches-workspaces.yarn30
1 files changed, 30 insertions, 0 deletions
diff --git a/yarns/branches-workspaces.yarn b/yarns/branches-workspaces.yarn
index 27bddff5..6ccbe28f 100644
--- a/yarns/branches-workspaces.yarn
+++ b/yarns/branches-workspaces.yarn
@@ -212,6 +212,36 @@ fields when referring to strata, when it didn't before.
AND in branch foo, system systems/test-system.morph refers to core without ref
FINALLY the git server is shut down
+`morph get-repo` can be used to just clone and checkout a repository,
+without changing the morphologies in definitions.
+
+ SCENARIO morph get-repo checks out a repository
+ GIVEN a workspace
+ AND a git server
+ WHEN the user creates a system branch called foo
+ AND the user gets the repo for chunk test-chunk in branch foo
+ THEN morph succeeded
+ AND the repo for chunk test-chunk was cloned into the system branch foo
+
+We can also specify the directory to clone the repo into.
+
+ WHEN the user gets the repo for chunk test-chunk from branch foo in directory foo
+ THEN morph succeeded
+ AND the repo for chunk test-chunk was cloned into the directory foo
+
+A ref to checkout can also be specified.
+
+ WHEN the user gets the repo for chunk test-chunk from branch foo in directory bar at ref master
+ THEN morph succeeded
+ AND the repo for chunk test-chunk was cloned into the directory bar
+ AND the repo in directory bar has HEAD master
+
+This should not work if the directory already exists.
+
+ WHEN the user attempts to get the repo for chunk test-chunk from branch foo in directory foo
+ THEN morph failed
+ FINALLY the git server is shut down
+
Temporary Build Branch behaviour
--------------------------------