projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c6d5f
)
Fixed logic
author
Roland Mas
<lolando@debian.org>
Tue, 26 Feb 2013 16:35:35 +0000
(17:35 +0100)
committer
Roland Mas
<lolando@debian.org>
Tue, 26 Feb 2013 16:35:35 +0000
(17:35 +0100)
src/plugins/scmgit/common/GitPlugin.class.php
patch
|
blob
|
history
diff --git
a/src/plugins/scmgit/common/GitPlugin.class.php
b/src/plugins/scmgit/common/GitPlugin.class.php
index 168c55a93caf9138404ce535bbaed9a843ddae5d..6acffea1eeaccaa6258707ec9c86ac0b6cd1bebb 100644
(file)
--- a/
src/plugins/scmgit/common/GitPlugin.class.php
+++ b/
src/plugins/scmgit/common/GitPlugin.class.php
@@
-361,7
+361,7
@@
class GitPlugin extends SCMPlugin {
system("if test -e $main_repo || test -h $main_repo; then d=\$(mktemp -d $main_repo.scmgit-moved.XXXXXXXXXX) && mv -f $main_repo \$d/; fi");
/* here’s still a TOCTOU but we check $ret below */
system("mv $tmp_repo $main_repo", $ret);
- if (
!$ret
) {
+ if (
$ret != 0
) {
return false;
}
}