diff options
-rw-r--r-- | 70-git.liw.fi.yarn | 5 | ||||
-rw-r--r-- | 900-implements.yarn | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/70-git.liw.fi.yarn b/70-git.liw.fi.yarn index aff3f34..46e6fda 100644 --- a/70-git.liw.fi.yarn +++ b/70-git.liw.fi.yarn @@ -17,3 +17,8 @@ It must also have Gitano accessible over ssh. WHEN user runs Gitano help THEN exit code is 0 AND standard error matches "Gitano" + +Also, it'd be nice if the anonymous git protocol works. + + WHEN user clones the bumper repository over git:// + THEN exit code is 0 diff --git a/900-implements.yarn b/900-implements.yarn index 0855bb5..e5943f7 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -47,6 +47,19 @@ h.set_variable('stdout', out) h.set_variable('stderr', err) + IMPLEMENTS WHEN user clones the (\S+) repository over git:// + import os, re, cliapp, yarnhelper + h = yarnhelper.YarnHelper() + server = os.environ['SERVER'] + repo = h.get_next_match() + url = 'git://{}/{}'.format(server, repo) + argv = ['git', 'clone', url] + exit, out, err = cliapp.runcmd_unchecked(argv, cwd=os.environ['DATADIR']) + h.set_variable('argv', argv) + h.set_variable('exit', int(exit)) + h.set_variable('stdout', out) + h.set_variable('stderr', err) + IMPLEMENTS THEN exit code is (\d+) import yarnhelper h = yarnhelper.YarnHelper() |