diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-10-06 22:27:09 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-10-06 22:27:09 +0100 |
commit | 9fb5ea9b83b989b4acbe63592984cb04633478a7 (patch) | |
tree | 9d32cb092af58ba6b943c0e2b892045be6422579 /git.liw.fi.sh | |
parent | 1edae946cc31eda0be09f622f547a794f8617fff (diff) | |
download | liw-gitano-acl-test-suite-9fb5ea9b83b989b4acbe63592984cb04633478a7.tar.gz |
Add test for public repo creation
Diffstat (limited to 'git.liw.fi.sh')
-rw-r--r-- | git.liw.fi.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/git.liw.fi.sh b/git.liw.fi.sh index 653e6ec..304bfdb 100644 --- a/git.liw.fi.sh +++ b/git.liw.fi.sh @@ -79,3 +79,18 @@ user_del() return 1 fi } + + +# Remove a repository from the server. This is a two-step process. + +destroy_repo() +{ + if run_gitano_as "$1" destroy "$2" 2> "$DATADIR/temp" + then + secret=$(awk '{ s = $2 } END { print s }' "$DATADIR/temp") + run_gitano_as "$1" destroy "$2" "$secret" + else + cat "$DATADIR/temp" 1>&2 + return 1 + fi +} |