[Fusionforge-commits] FusionForge branch master updated. adade39726fd944f3b625822f6b9ffa5a19b6b7d
Franck VILLAUME
nerville at fusionforge.org
Mon Feb 10 14:34:22 CET 2014
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 adade39726fd944f3b625822f6b9ffa5a19b6b7d (commit)
via d21781be0ce9f911465f44e1ecb6ed303781442f (commit)
from dc87473f652cb83e076d4886d946101469b5447e (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 adade39726fd944f3b625822f6b9ffa5a19b6b7d
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Mon Feb 10 14:28:11 2014 +0100
scmgit: fix weird owner when creating clone personal repository
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index fa6377f..c7ecffd 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -399,6 +399,7 @@ class GitPlugin extends SCMPlugin {
}
if (!is_file("$repodir/HEAD") && !is_dir("$repodir/objects") && !is_dir("$repodir/refs")) {
system("git clone --bare $main_repo $repodir");
+ system("chown -R $user_name $repodir");
system("GIT_DIR=\"$repodir\" git update-server-info");
if (is_file("$repodir/hooks/post-update.sample")) {
rename("$repodir/hooks/post-update.sample",
commit d21781be0ce9f911465f44e1ecb6ed303781442f
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Mon Feb 10 14:14:12 2014 +0100
scmgit: avoid iframe loop when user uses the project_home link in gitweb
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 6286c21..fa6377f 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -317,6 +317,12 @@ class GitPlugin extends SCMPlugin {
echo $HTML->getJavascripts();
echo '<script type="text/javascript">//<![CDATA[
jQuery(\'#scm_iframe\').iframeAutoHeight({heightOffset: 50});
+ jQuery(\'#scm_iframe\').load(function (){
+ if (this.contentWindow.location.href == "'.util_make_url('/projects/'.$project->getUnixName()).'/") {
+ console.log(this.contentWindow.location.href);
+ window.location.href = this.contentWindow.location.href;
+ };
+ });
//]]></script>';
}
}
-----------------------------------------------------------------------
Summary of changes:
src/plugins/scmgit/common/GitPlugin.class.php | 7 +++++++
1 file changed, 7 insertions(+)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list