projects
/
GITManagedWebpage.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed last commit
[GITManagedWebpage.git]
/
GITManagedWebpage.class.php
diff --git
a/GITManagedWebpage.class.php
b/GITManagedWebpage.class.php
index 3a76edcec7cca0f9722b56633d86dd92f339c5f5..2c429f96ed1a047e76a7f5c0f42739f078984cd9 100644
(file)
--- a/
GITManagedWebpage.class.php
+++ b/
GITManagedWebpage.class.php
@@
-218,7
+218,7
@@
class GITManagedWebpage {
if($branch == $default_branch)
$dir = $this->localdir;
else
if($branch == $default_branch)
$dir = $this->localdir;
else
- $dir = $this->workdir.'branch_'.
$branch
.'/';
+ $dir = $this->workdir.'branch_'.
str_replace(array('/'), array('_'), $branch)
.'/';
if(file_exists($dir))
return $dir;
else if($create) {
if(file_exists($dir))
return $dir;
else if($create) {
@@
-290,8
+290,10
@@
class GITManagedWebpage {
if($this->loopedcall)
return;
if($this->loopedcall)
return;
- if(!$this->branchExists($branch))
- return false;
+ if(!$this->branchExists($branch)) {
+ if(!$this->branchExists('origin/'.$branch))
+ return false;
+ }
$this->setActiveBranch($branch, $remember);
if(!$this->localBranchPath($branch)) {
$this->setActiveBranch($branch, $remember);
if(!$this->localBranchPath($branch)) {