Skip to content

Commit

Permalink
Tweaked pull and push scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wbond committed Sep 12, 2012
1 parent 1c202f2 commit 05c5ceb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 22 deletions.
29 changes: 18 additions & 11 deletions pull_submodules.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
`git submodule init`;
`git submodule update`;

`git --work-tree=./build --git-dir=./build/.git checkout master`;
`git --work-tree=./classes --git-dir=./classes/.git checkout master`;
`git --work-tree=./discussion --git-dir=./discussion/.git checkout master`;
`git --work-tree=./docs --git-dir=./docs/.git checkout master`;
`git --work-tree=./flourishlib.com --git-dir=./flourishlib.com/.git checkout master`;
`git --work-tree=./phpdoc --git-dir=./phpdoc/.git checkout master`;
`git --work-tree=./site --git-dir=./site/.git checkout master`;
`git --work-tree=./tests --git-dir=./tests/.git checkout master`;
`git --work-tree=./tests-results --git-dir=./tests-results/.git checkout master`;
`git --work-tree=./wiki-engine --git-dir=./wiki-engine/.git checkout master`;

$submodules = array(
'build',
'classes',
'discussion',
'docs',
'flourishlib.com',
'phpdoc',
'site',
'tests',
'tests-results',
'wiki-engine'
);
foreach ($submodules as $submodule) {
chdir($submodule);
`git checkout master`;
`git pull origin master`;
chdir('..');
}
27 changes: 16 additions & 11 deletions push_submodules.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<?php
`git add build`;
`git add classes`;
`git add discussion`;
`git add docs`;
`git add flourishlib.com`;
`git add phpdoc`;
`git add site`;
`git add tests`;
`git add tests-results`;
`git add wiki-engine`;
$submodules = array(
'build',
'classes',
'discussion',
'docs',
'flourishlib.com',
'phpdoc',
'site',
'tests',
'tests-results',
'wiki-engine'
);
foreach ($submodules as $submodule) {
`git add $submodule`;
}

`git commit -m 'Added new submodule commits'`;
`git push origin master`;
`git push origin master`;

0 comments on commit 05c5ceb

Please sign in to comment.