This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  1048dd51d71b68f5244ee386b6b3614426649c83 (commit)
      from  97eb3eed692d94d06a5970f964ffc4286c339f42 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1048dd51d71b68f5244ee386b6b3614426649c83
Author: Roland Mas <[email protected]>
Date:   Wed May 28 15:05:01 2014 +0200

    Also remove SCM repositories when reloading the DB

diff --git a/tests/func/db_reload.sh b/tests/func/db_reload.sh
index c9603c0..a4d175b 100755
--- a/tests/func/db_reload.sh
+++ b/tests/func/db_reload.sh
@@ -121,6 +121,14 @@ else
     exit 1
 fi
 
+for i in arch bzr cvs darcs git hg svn ; do
+    repopath=`FUSIONFORGE_NO_PLUGINS=true forge_get_config repos_path scm$i`
+    if [ -d $repopath ] && ls $repopath | grep -q .. ; then
+       echo "Removing $i repositories"
+       rm -rf $repopath/*
+    fi
+done
+
 # If the backup is there, restore it (it should now have been created by 
install.sh)
 if [ -d $dbdir.backup ]; then
 

-----------------------------------------------------------------------

Summary of changes:
 tests/func/db_reload.sh |    8 ++++++++
 1 file changed, 8 insertions(+)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to