diff options
author | Richard Maw <richard.maw@gmail.com> | 2016-12-03 15:18:29 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2016-12-03 15:21:55 +0000 |
commit | 217401944117a6411628d454e8e3632da6a65d54 (patch) | |
tree | 58b32323a5923c4c5012494e693d295f3bc10788 /testing/02-commands-rename.yarn | |
parent | 6003734d6ea3b900d0c35f0a5262da5c37476c4a (diff) | |
download | gitano-217401944117a6411628d454e8e3632da6a65d54.tar.gz |
yarns: Amend rename text for new error message
This was previously commented out because the given error message
was that the ruleset denied action.
This was because the only way reading was permitted was by repository ownership,
and since the repository did not exist it could not have an owner.
Since the rules skeleton was updated to allow read in the user's prefix
it can have a more useful error message if the repository does not exist.
The message produced when a repository is missing was also changed
since the code was commented out, due to localisation changes,
so as well as re-enabling these commands
the error message has been updated to reflect its new wording.
Diffstat (limited to 'testing/02-commands-rename.yarn')
-rw-r--r-- | testing/02-commands-rename.yarn | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/testing/02-commands-rename.yarn b/testing/02-commands-rename.yarn index c9dd1b0..659d3a3 100644 --- a/testing/02-commands-rename.yarn +++ b/testing/02-commands-rename.yarn @@ -28,10 +28,8 @@ When a repository is renamed it does not modify any of the refs. WHEN alice main, expecting failure, runs rename personal/alice/testrepo personal/alice/testrepo2 THEN stderr contains CRIT: Destination location is in use -<!-- WHEN alice main, expecting failure, runs rename personal/alice/testrepo3 personal/alice/testrepo4 - THEN stderr contains ERROR: Cannot rename personal/alice/testrepo3 as it does not exit ---> + THEN stderr contains CRIT: Cannot rename a repository which does not exist If a user is not permitted to see a repository they can't rename it, and it does not reveal the existence of the repository. |